gateway-s3: Avoid x2 double quotes in ListParts (#4295)

ListParts response returns doubled double quotes in ETag field.
This commit cleans ETag when receiving it from minio client to
fix the issue.
master
Anis Elleuch 8 years ago committed by Harshavardhana
parent 0d9de50e21
commit 85bc6003e9
  1. 2
      cmd/gateway-s3.go

@ -449,7 +449,7 @@ func (l *s3Gateway) CopyObjectPart(srcBucket string, srcObject string, destBucke
func fromMinioClientObjectPart(op minio.ObjectPart) PartInfo { func fromMinioClientObjectPart(op minio.ObjectPart) PartInfo {
return PartInfo{ return PartInfo{
Size: op.Size, Size: op.Size,
ETag: op.ETag, ETag: canonicalizeETag(op.ETag),
LastModified: op.LastModified, LastModified: op.LastModified,
PartNumber: op.PartNumber, PartNumber: op.PartNumber,
} }

Loading…
Cancel
Save