Emit LastModified and ETag during copy object

Regression from ea1a42dcd8.
pull/53/head
Andrew Gaul 2015-04-18 04:32:08 -07:00
rodzic 9d072e4e11
commit 38210cc498
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -1076,6 +1076,11 @@ final class S3ProxyHandler extends AbstractHandler {
xml.writeStartElement("CopyObjectResult");
xml.writeDefaultNamespace(AWS_XMLNS);
writeSimpleElement(xml, "LastModified",
blobStore.getContext().utils().date()
.iso8601DateFormat(blobMetadata.getLastModified()));
writeSimpleElement(xml, "ETag", "\"" + eTag + "\"");
xml.writeEndElement();
xml.flush();
} catch (XMLStreamException xse) {