Skip to content

Commit

Permalink
Ignore new AWS checksum headers
Browse files Browse the repository at this point in the history
Previously newer versions of aws-cli could not put objects.
Fixes #760.  Fixes #765.
  • Loading branch information
gaul committed Jan 29, 2025
1 parent c84d0eb commit ce80406
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/gaul/s3proxy/AwsHttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
final class AwsHttpHeaders {
static final String ACL = "x-amz-acl";
static final String API_VERSION = "x-amz-api-version";
static final String CHECKSUM_ALGORITHM = "x-amz-sdk-checksum-algorithm";
static final String CHECKSUM_CRC64NVME = "x-amz-checksum-crc64nvme";
static final String CONTENT_SHA256 = "x-amz-content-sha256";
static final String COPY_SOURCE = "x-amz-copy-source";
static final String COPY_SOURCE_IF_MATCH = "x-amz-copy-source-if-match";
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/gaul/s3proxy/S3ProxyHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ public class S3ProxyHandler {
private static final Set<String> SUPPORTED_X_AMZ_HEADERS = Set.of(
AwsHttpHeaders.ACL,
AwsHttpHeaders.API_VERSION,
AwsHttpHeaders.CHECKSUM_ALGORITHM, // TODO: ignoring header
AwsHttpHeaders.CHECKSUM_CRC64NVME, // TODO: ignoring header
AwsHttpHeaders.CONTENT_SHA256,
AwsHttpHeaders.COPY_SOURCE,
AwsHttpHeaders.COPY_SOURCE_IF_MATCH,
Expand Down

0 comments on commit ce80406

Please sign in to comment.