[#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

@ -13,7 +13,7 @@ type localHeader struct {
}
func (h *localHeader) head(ctx context.Context, prm *Prm, handler func(*object.Object)) error {
head, err := engine.Head(h.storage, prm.addr)
head, err := engine.HeadRaw(h.storage, prm.addr, prm.raw)
if err != nil {
return errors.Wrapf(err, "(%T) could not get header from local storage", h)
}