Skip to content

Commit

Permalink
fix: get ETag from resp.Body rather than resp.Header
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangcheng09 committed Nov 16, 2024
1 parent ab1c2fe commit c0f1a86
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 c0f1a86

Please sign in to comment.