fix s3api copy object handler SerializationError

This commit is contained in:
popstk
2020-07-25 15:52:31 +08:00
parent fa0e2ff498
commit feb52400be
2 changed files with 104 additions and 6 deletions

View File

@@ -61,7 +61,7 @@ func (s3a *S3ApiServer) CopyObjectHandler(w http.ResponseWriter, r *http.Request
response := CopyObjectResult{
ETag: etag,
LastModified: time.Now(),
LastModified: time.Now().UTC(),
}
writeSuccessResponseXML(w, encodeResponse(response))
@@ -143,7 +143,7 @@ func (s3a *S3ApiServer) CopyObjectPartHandler(w http.ResponseWriter, r *http.Req
response := CopyPartResult{
ETag: etag,
LastModified: time.Now(),
LastModified: time.Now().UTC(),
}
writeSuccessResponseXML(w, encodeResponse(response))