[#161] object/head: Inherit common parameters in HeadRelation

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-09 17:12:32 +03:00 committed by Alex Vanin
parent d38633e047
commit 3c42f5b452

View file

@ -32,7 +32,10 @@ func (h *RelationHeader) HeadRelation(ctx context.Context, addr *objectSDK.Addre
a.SetContainerID(addr.GetContainerID()) a.SetContainerID(addr.GetContainerID())
a.SetObjectID(id) a.SetObjectID(id)
r, err := h.svc.Head(ctx, new(Prm).WithAddress(a)) r, err := h.svc.Head(ctx, new(Prm).
WithAddress(a).
WithCommonPrm(prm),
)
if err != nil { if err != nil {
return nil, errors.Wrapf(err, "(%T) could not receive relation header", h) return nil, errors.Wrapf(err, "(%T) could not receive relation header", h)
} }