Skip to content

Commit d81266b

Browse files
committed
fix: revert to use CRC32 for default checksum algorithm
This reverts commit aad6e6f.
1 parent f8383a6 commit d81266b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/middleware-flexible-checksums/src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const DEFAULT_RESPONSE_CHECKSUM_VALIDATION = RequestChecksumCalculation.W
5353
*/
5454
export enum ChecksumAlgorithm {
5555
/**
56-
* @deprecated Use {@link ChecksumAlgorithm.SHA256} instead.
56+
* @deprecated Use {@link ChecksumAlgorithm.CRC32} instead.
5757
*/
5858
MD5 = "MD5",
5959
CRC32 = "CRC32",
@@ -73,7 +73,7 @@ export enum ChecksumLocation {
7373
/**
7474
* @internal
7575
*/
76-
export const DEFAULT_CHECKSUM_ALGORITHM = ChecksumAlgorithm.SHA256;
76+
export const DEFAULT_CHECKSUM_ALGORITHM = ChecksumAlgorithm.CRC32;
7777

7878
/**
7979
* @internal

private/aws-middleware-test/src/middleware-serde.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe("middleware-serde", () => {
2727
"x-amz-acl": "private",
2828
"content-length": "509",
2929
Expect: "100-continue",
30-
"x-amz-checksum-sha256": "wKiXgOGqxd+hdgTp4lYW57q7oLZV2xib5JtMNSVDuyI=",
30+
"x-amz-checksum-crc32": "XnKFaw==",
3131
host: "s3.us-west-2.amazonaws.com",
3232
"x-amz-content-sha256": "c0a89780e1aac5dfa17604e9e25616e7babba0b655db189be49b4c352543bb22",
3333
},

0 commit comments

Comments
 (0)