Skip to content

Commit

Permalink
Allow x-amz-user-agent header
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair authored and gaul committed Aug 29, 2024
1 parent 2b4b9ca commit 61adb31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/org/gaul/s3proxy/AwsHttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ final class AwsHttpHeaders {
static final String METADATA_DIRECTIVE = "x-amz-metadata-directive";
static final String REQUEST_ID = "x-amz-request-id";
static final String STORAGE_CLASS = "x-amz-storage-class";
static final String USER_AGENT = "x-amz-user-agent";

private AwsHttpHeaders() {
throw new AssertionError("intentionally unimplemented");
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/gaul/s3proxy/S3ProxyHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ public class S3ProxyHandler {
AwsHttpHeaders.DATE,
AwsHttpHeaders.DECODED_CONTENT_LENGTH,
AwsHttpHeaders.METADATA_DIRECTIVE,
AwsHttpHeaders.STORAGE_CLASS
AwsHttpHeaders.STORAGE_CLASS,
AwsHttpHeaders.USER_AGENT
);
private static final Set<String> CANNED_ACLS = ImmutableSet.of(
"private",
Expand Down

0 comments on commit 61adb31

Please sign in to comment.