[#235] object/head: Support raw flag in service

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-12-08 15:59:01 +03:00 committed by Alex Vanin
parent 1d23483828
commit 397d912e19
5 changed files with 33 additions and 3 deletions

View file

@ -74,7 +74,8 @@ func (h *RemoteHeader) Head(ctx context.Context, prm *RemoteHeadPrm) (*object.Ob
}
p := new(client.ObjectHeaderParams).
WithAddress(prm.commonHeadPrm.addr)
WithAddress(prm.commonHeadPrm.addr).
WithRawFlag(prm.commonHeadPrm.raw)
if prm.commonHeadPrm.short {
p = p.WithMainFields()