From 24637be7c298140a235eea4d6c3b5ce1fa3c1d51 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Sat, 19 Aug 2023 06:05:34 +0300 Subject: [PATCH] Fix panic for multipart client --- pkg/multipart/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/multipart/client.go b/pkg/multipart/client.go index 1f5df226..6367f0df 100644 --- a/pkg/multipart/client.go +++ b/pkg/multipart/client.go @@ -50,6 +50,7 @@ func NewClient(res *http.Response) (*Client, error) { c := &Client{ boundary: boundary, reader: bufio.NewReader(res.Body), + res: res, } if err := c.probe(); err != nil {