Skip to content

Commit

Permalink
client: set OID in object returned from Head() (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
carpawell authored Jan 30, 2025
2 parents 3ac6276 + 5f21541 commit 051c623
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/object_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ func (c *Client) ObjectHead(ctx context.Context, containerID cid.ID, objectID oi

var obj object.Object
if err = obj.FromProtoMessage(&protoobject.Object{
ObjectId: objectID.ProtoMessage(),
Signature: v.Header.Signature,
Header: v.Header.Header,
}); err != nil {
Expand Down

0 comments on commit 051c623

Please sign in to comment.