Fix update oxy

This commit is contained in:
Michael 2018-10-10 18:20:05 +02:00 committed by Traefiker Bot
parent 609b2630d7
commit b722748ec3
5 changed files with 7 additions and 2 deletions

View file

@ -330,7 +330,7 @@ func (b *Buffer) copyRequest(req *http.Request, body io.ReadCloser, bodySize int
o.TransferEncoding = []string{}
// http.Transport will close the request body on any error, we are controlling the close process ourselves, so we override the closer here
if body == nil {
o.Body = nil
o.Body = ioutil.NopCloser(req.Body)
} else {
o.Body = ioutil.NopCloser(body.(io.Reader))
}