kopia lustrzana https://github.com/gaul/s3proxy
rodzic
559b1d36dd
commit
004d12761e
|
@ -764,9 +764,9 @@ final class S3ProxyHandler extends AbstractHandler {
|
||||||
ImmutableMap.Builder<String, String> userMetadata =
|
ImmutableMap.Builder<String, String> userMetadata =
|
||||||
ImmutableMap.builder();
|
ImmutableMap.builder();
|
||||||
for (String headerName : Collections.list(request.getHeaderNames())) {
|
for (String headerName : Collections.list(request.getHeaderNames())) {
|
||||||
if (headerName.equals(HttpHeaders.CONTENT_LENGTH)) {
|
if (headerName.equalsIgnoreCase(HttpHeaders.CONTENT_LENGTH)) {
|
||||||
hasContentLength = true;
|
hasContentLength = true;
|
||||||
} else if (headerName.equals(HttpHeaders.CONTENT_MD5)) {
|
} else if (headerName.equalsIgnoreCase(HttpHeaders.CONTENT_MD5)) {
|
||||||
hasContentMD5 = true;
|
hasContentMD5 = true;
|
||||||
} else if (headerName.toLowerCase().startsWith(
|
} else if (headerName.toLowerCase().startsWith(
|
||||||
USER_METADATA_PREFIX)) {
|
USER_METADATA_PREFIX)) {
|
||||||
|
|
Ładowanie…
Reference in New Issue