diff --git a/pkg/client/object.go b/pkg/client/object.go index d970a20b..56cbf3c7 100644 --- a/pkg/client/object.go +++ b/pkg/client/object.go @@ -874,7 +874,7 @@ func (c *clientImpl) ObjectPayloadRangeData(ctx context.Context, p *RangeDataPar var payload []byte if p.w != nil { - payload = make([]byte, p.r.GetLength()) + payload = make([]byte, 0, p.r.GetLength()) } resp := new(v2object.GetRangeResponse)