Allow x-amz-user-agent header

pull/680/head
losfair 2024-08-28 22:31:38 +08:00 zatwierdzone przez Andrew Gaul
rodzic 2b4b9cacc9
commit 61adb31c9d
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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");

Wyświetl plik

@ -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",