Skip to content

Commit c18789f

Browse files
authored
fix: get ETag for CopyObject response rather than response Headers (#2019)
1 parent 5b389f0 commit c18789f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-copy-object.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (c *Client) CopyObject(ctx context.Context, dst CopyDestOptions, src CopySr
6868
Bucket: dst.Bucket,
6969
Key: dst.Object,
7070
LastModified: cpObjRes.LastModified,
71-
ETag: trimEtag(resp.Header.Get("ETag")),
71+
ETag: trimEtag(cpObjRes.ETag),
7272
VersionID: resp.Header.Get(amzVersionID),
7373
Expiration: expTime,
7474
ExpirationRuleID: ruleID,

0 commit comments

Comments
 (0)