forked from quic-go/quic-go
fix closing of http.Response and http.Request bodies
This commit is contained in:
@@ -187,7 +187,7 @@ func (c *client) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||
res.Header.Add(hf.Name, hf.Value)
|
||||
}
|
||||
}
|
||||
respBody := newResponseBody(&responseBody{str})
|
||||
respBody := newResponseBody(str)
|
||||
if requestGzip && res.Header.Get("Content-Encoding") == "gzip" {
|
||||
res.Header.Del("Content-Encoding")
|
||||
res.Header.Del("Content-Length")
|
||||
|
||||
Reference in New Issue
Block a user