Re-add setting requestBuf after seeking

This commit is contained in:
Ringo Hoffmann 2022-01-28 17:24:17 +01:00
parent c42caf78a2
commit 0d8627db50
No known key found for this signature in database
GPG Key ID: 5DE1487DA08E34FE

View File

@ -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 { if _, err = sk.Seek(0, io.SeekStart); err != nil {
return return
} }
retryBuf = body
} else { } else {
buff := &bytes.Buffer{} buff := &bytes.Buffer{}
retryBuf = buff retryBuf = buff