[#321] client: Set object ID field in Put

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-08-24 16:25:54 +03:00 committed by fyrchik
parent 7578b54fac
commit 7537fa0dec

View file

@ -189,6 +189,13 @@ func (x *ObjectWriter) Close() (*ResObjectPut, error) {
return nil, x.ctxCall.err
}
if x.ctxCall.result != nil {
x.ctxCall.result(x.ctxCall.resp)
if x.ctxCall.err != nil {
return nil, x.ctxCall.err
}
}
return x.ctxCall.statusRes.(*ResObjectPut), nil
}