Skip to content

Commit

Permalink
client: set OID in object returned from Head()
Browse files Browse the repository at this point in the history
3c47093 regression. Even though it's not
a part of the protocol, clients expect it to be set.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
  • Loading branch information
roman-khimov committed Jan 30, 2025
1 parent 3ac6276 commit 5f21541
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 5f21541

Please sign in to comment.