Re-add setting requestBuf after seeking
This commit is contained in:
parent
c42caf78a2
commit
0d8627db50
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user