From 37e2cab93b3e5619329d8237e17a88f9462318e1 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 17 Dec 2020 13:20:29 +0300 Subject: [PATCH] [#229] pkg/client: Set hash fields to result of short HEAD operation Signed-off-by: Leonard Lyubich --- pkg/client/object.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/client/object.go b/pkg/client/object.go index a96f2f2..cd6dbb4 100644 --- a/pkg/client/object.go +++ b/pkg/client/object.go @@ -730,6 +730,8 @@ func (c *Client) getObjectHeaderV2(ctx context.Context, p *ObjectHeaderParams, o hdr.SetOwnerID(h.GetOwnerID()) hdr.SetObjectType(h.GetObjectType()) hdr.SetCreationEpoch(h.GetCreationEpoch()) + hdr.SetPayloadHash(h.GetPayloadHash()) + hdr.SetHomomorphicHash(h.GetHomomorphicHash()) case *v2object.HeaderWithSignature: if p.short { return nil, errors.Errorf("wrong header part type: expected %T, received %T",