diff --git a/cmd/neofs-cli/internal/client/client.go b/cmd/neofs-cli/internal/client/client.go index 0fde595e..80e3f8b9 100644 --- a/cmd/neofs-cli/internal/client/client.go +++ b/cmd/neofs-cli/internal/client/client.go @@ -584,6 +584,14 @@ func HeadObject(prm HeadObjectPrm) (*HeadObjectRes, error) { cliPrm.ByID(*id) } + if prm.sessionToken != nil { + cliPrm.WithinSession(*prm.sessionToken) + } + + if prm.bearerToken != nil { + cliPrm.WithBearerToken(*prm.bearerToken) + } + if prm.raw { cliPrm.MarkRaw() } @@ -817,6 +825,14 @@ func PayloadRange(prm PayloadRangePrm) (*PayloadRangeRes, error) { cliPrm.ByID(*id) } + if prm.sessionToken != nil { + cliPrm.WithinSession(*prm.sessionToken) + } + + if prm.bearerToken != nil { + cliPrm.WithBearerToken(*prm.bearerToken) + } + if prm.raw { cliPrm.MarkRaw() }