From 85773c419be0eb29c209138ce02b1cb1b7c21322 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 23 Dec 2020 12:35:36 +0300 Subject: [PATCH] [#271] service/object: Fill all fields of new short header structure Signed-off-by: Alex Vanin --- pkg/services/object/get/v2/util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/services/object/get/v2/util.go b/pkg/services/object/get/v2/util.go index a9b86557..4515c391 100644 --- a/pkg/services/object/get/v2/util.go +++ b/pkg/services/object/get/v2/util.go @@ -197,6 +197,8 @@ func toShortObjectHeader(hdr *object.Object) objectV2.GetHeaderPart { sh.SetPayloadLength(hdrV2.GetPayloadLength()) sh.SetVersion(hdrV2.GetVersion()) sh.SetObjectType(hdrV2.GetObjectType()) + sh.SetHomomorphicHash(hdrV2.GetHomomorphicHash()) + sh.SetPayloadHash(hdrV2.GetPayloadHash()) return sh }