Add and ignore x-amz-api-version

Fixes #497.
pull/524/head
Andrew Gaul 2023-05-16 21:34:32 +09:00
rodzic 5996114f8c
commit 99c1486fd3
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -18,6 +18,7 @@ package org.gaul.s3proxy;
final class AwsHttpHeaders {
static final String ACL = "x-amz-acl";
static final String API_VERSION = "x-amz-api-version";
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";

Wyświetl plik

@ -163,6 +163,7 @@ public class S3ProxyHandler {
/** All supported x-amz- headers, except for x-amz-meta- user metadata. */
private static final Set<String> SUPPORTED_X_AMZ_HEADERS = ImmutableSet.of(
AwsHttpHeaders.ACL,
AwsHttpHeaders.API_VERSION,
AwsHttpHeaders.CONTENT_SHA256,
AwsHttpHeaders.COPY_SOURCE,
AwsHttpHeaders.COPY_SOURCE_IF_MATCH,