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.
This commit is contained in:
Anis Elleuch 2017-05-08 22:42:05 +01:00 committed by Harshavardhana
parent 0d9de50e21
commit 85bc6003e9

View file

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