[#253] object/put: Fix loss of session token

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-12-18 14:54:54 +03:00 committed by Leonard Lyubich
parent 8e661d5c37
commit 9e27263df3
2 changed files with 4 additions and 3 deletions

View file

@ -78,6 +78,7 @@ func (t *remoteTarget) Close() (*transformer.AccessIdentifiers, error) {
),
client.WithTTL(1), // FIXME: use constant
client.WithBearer(t.bearer),
client.WithSession(t.token),
)
if err != nil {
return nil, errors.Wrapf(err, "(%T) could not put object to %s", t, addr)