Honor force multipart in emulated copy object

pull/36/head
Andrew Gaul 2015-01-13 21:33:07 -08:00
rodzic 86665450ca
commit a6133a60a6
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -901,8 +901,10 @@ final class S3ProxyHandler extends AbstractHandler {
.contentLength(metadata.getContentLength())
.contentType(metadata.getContentType());
PutOptions options = new PutOptions()
.multipart(forceMultiPartUpload);
String eTag = blobStore.putBlob(destContainerName,
builder.build());
builder.build(), options);
Date lastModified = blob.getMetadata().getLastModified();
try (Writer writer = response.getWriter()) {
XMLStreamWriter xml = xmlOutputFactory.createXMLStreamWriter(
@ -1009,7 +1011,7 @@ final class S3ProxyHandler extends AbstractHandler {
}
PutOptions options = new PutOptions()
.multipart(forceMultiPartUpload);
.multipart(forceMultiPartUpload);
try {
String eTag = blobStore.putBlob(containerName, builder.build(),
options);