mirror of
https://github.com/minio/minio.git
synced 2025-01-25 21:53:16 -05:00
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:
parent
0d9de50e21
commit
85bc6003e9
@ -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…
x
Reference in New Issue
Block a user