From 378474b02cc83e2765f4846d753de1a6d6c7a4dc Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 19 Nov 2021 15:10:11 +0300 Subject: [PATCH] [#950] neofs-cli: Attach x-headers in object range Signed-off-by: Alex Vanin --- cmd/neofs-cli/internal/client/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/neofs-cli/internal/client/client.go b/cmd/neofs-cli/internal/client/client.go index 262a7b8b..fc102ee0 100644 --- a/cmd/neofs-cli/internal/client/client.go +++ b/cmd/neofs-cli/internal/client/client.go @@ -604,11 +604,11 @@ func PayloadRange(prm PayloadRangePrm) (res PayloadRangeRes, err error) { cliPrm.WithDataWriter(prm.wrt) cliPrm.WithRange(prm.rng) - _, err = prm.cli.ObjectPayloadRangeData(context.Background(), &cliPrm, + _, err = prm.cli.ObjectPayloadRangeData(context.Background(), &cliPrm, append(prm.opts, client.WithKey(prm.privKey), client.WithSession(prm.sessionToken), client.WithBearer(prm.bearerToken), - ) + )...) return }