[#53] Update SDK to fix panic on go1.19

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-08-25 11:24:10 +03:00 committed by Alex Vanin
parent c9aa772538
commit ab2a2abbd5
5 changed files with 17 additions and 16 deletions

View file

@ -178,7 +178,7 @@ func (a *API) GetObjectInfo(params operations.GetObjectInfoParams, principal *mo
sb := new(strings.Builder)
encoder := base64.NewEncoder(base64.StdEncoding, sb)
payloadSize, err := io.Copy(encoder, rangeRes)
payloadSize, err := io.Copy(encoder, &rangeRes)
if err != nil {
errResp := a.logAndGetErrorResponse("encode object payload", err)
return errorResponse.WithPayload(errResp)