Skip to content

Commit

Permalink
do not add quotes around etag, if already present (minio#9603)
Browse files Browse the repository at this point in the history
  • Loading branch information
kannappanr authored May 15, 2020
1 parent 48e614b commit 6c1bbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gateway/s3/gateway-s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ func (l *s3Objects) CompleteMultipartUpload(ctx context.Context, bucket string,
return oi, minio.ErrorRespToObjectError(err, bucket, object)
}

return minio.ObjectInfo{Bucket: bucket, Name: object, ETag: etag}, nil
return minio.ObjectInfo{Bucket: bucket, Name: object, ETag: strings.Trim(etag, "\"")}, nil
}

// SetBucketPolicy sets policy on bucket
Expand Down

0 comments on commit 6c1bbf9

Please sign in to comment.