pull/1358/head
fatedier 2019-08-06 17:29:35 +08:00
parent f2117d8331
commit 80154639e3
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ func (p *ReverseProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
}()
}
outreq := req.Clone(ctx)
outreq := req.WithContext(ctx)
if req.ContentLength == 0 {
outreq.Body = nil // Issue 16036: nil Body for http.Transport retries
}