From 0d8627db5026a8b58b4ca08ed53e92c42e6b0c99 Mon Sep 17 00:00:00 2001 From: Ringo Hoffmann Date: Fri, 28 Jan 2022 17:24:17 +0100 Subject: [PATCH] Re-add setting requestBuf after seeking --- requests.go | 1 + 1 file changed, 1 insertion(+) diff --git a/requests.go b/requests.go index 0e68867..4a6ee05 100644 --- a/requests.go +++ b/requests.go @@ -33,6 +33,7 @@ func (c *Client) req(method, path string, body io.Reader, intercept func(*http.R if _, err = sk.Seek(0, io.SeekStart); err != nil { return } + retryBuf = body } else { buff := &bytes.Buffer{} retryBuf = buff