Skip to content

Commit

Permalink
fix: get ETag for CopyObject response rather than response Headers (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangcheng09 authored Jan 18, 2025
1 parent 5b389f0 commit c18789f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-copy-object.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (c *Client) CopyObject(ctx context.Context, dst CopyDestOptions, src CopySr
Bucket: dst.Bucket,
Key: dst.Object,
LastModified: cpObjRes.LastModified,
ETag: trimEtag(resp.Header.Get("ETag")),
ETag: trimEtag(cpObjRes.ETag),
VersionID: resp.Header.Get(amzVersionID),
Expiration: expTime,
ExpirationRuleID: ruleID,
Expand Down

0 comments on commit c18789f

Please sign in to comment.