kopia lustrzana https://github.com/gaul/s3proxy
Allow copyBlob lastModified to be null
This matches getBlob and other call sites.pull/728/head
rodzic
48c04eca6a
commit
b2c4665641
|
@ -1914,8 +1914,12 @@ public class S3ProxyHandler {
|
||||||
xml.writeStartElement("CopyObjectResult");
|
xml.writeStartElement("CopyObjectResult");
|
||||||
xml.writeDefaultNamespace(AWS_XMLNS);
|
xml.writeDefaultNamespace(AWS_XMLNS);
|
||||||
|
|
||||||
|
var lastModified = blobMetadata.getLastModified();
|
||||||
|
if (lastModified != null) {
|
||||||
writeSimpleElement(xml, "LastModified",
|
writeSimpleElement(xml, "LastModified",
|
||||||
formatDate(blobMetadata.getLastModified()));
|
formatDate(lastModified));
|
||||||
|
}
|
||||||
|
|
||||||
writeSimpleElement(xml, "ETag", maybeQuoteETag(eTag));
|
writeSimpleElement(xml, "ETag", maybeQuoteETag(eTag));
|
||||||
|
|
||||||
xml.writeEndElement();
|
xml.writeEndElement();
|
||||||
|
@ -2731,7 +2735,10 @@ public class S3ProxyHandler {
|
||||||
xml.writeStartElement("CopyObjectResult");
|
xml.writeStartElement("CopyObjectResult");
|
||||||
xml.writeDefaultNamespace(AWS_XMLNS);
|
xml.writeDefaultNamespace(AWS_XMLNS);
|
||||||
|
|
||||||
writeSimpleElement(xml, "LastModified", formatDate(lastModified));
|
if (lastModified != null) {
|
||||||
|
writeSimpleElement(xml, "LastModified",
|
||||||
|
formatDate(lastModified));
|
||||||
|
}
|
||||||
if (eTag != null) {
|
if (eTag != null) {
|
||||||
writeSimpleElement(xml, "ETag", maybeQuoteETag(eTag));
|
writeSimpleElement(xml, "ETag", maybeQuoteETag(eTag));
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue