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

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2020-11-09 17:12:32 +03:00 committed by Alex Vanin
parent d38633e047
commit 3c42f5b452
1 changed files with 4 additions and 1 deletions

View File

@ -32,7 +32,10 @@ func (h *RelationHeader) HeadRelation(ctx context.Context, addr *objectSDK.Addre
a.SetContainerID(addr.GetContainerID())
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 {
return nil, errors.Wrapf(err, "(%T) could not receive relation header", h)
}