forked from TrueCloudLab/frostfs-api-go
[#180] sdk/client: Set session token field in all requests
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
b2ba0eef07
commit
7f0f42bc30
1 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,8 @@ func v2MetaHeaderFromOpts(options callOptions) *v2session.RequestMetaHeader {
|
||||||
meta.SetBearerToken(options.bearer.ToV2())
|
meta.SetBearerToken(options.bearer.ToV2())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
meta.SetSessionToken(options.session.ToV2())
|
||||||
|
|
||||||
return meta
|
return meta
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue