forked from TrueCloudLab/frostfs-rest-gw
[#53] Update SDK to fix panic on go1.19
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
c9aa772538
commit
ab2a2abbd5
5 changed files with 17 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue