Fix update oxy
This commit is contained in:
parent
609b2630d7
commit
b722748ec3
5 changed files with 7 additions and 2 deletions
2
vendor/github.com/vulcand/oxy/buffer/buffer.go
generated
vendored
2
vendor/github.com/vulcand/oxy/buffer/buffer.go
generated
vendored
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue