Skip to content

Commit e816179

Browse files
committed
Fix responsebody variable assignment when returning raw bytes
1 parent 5987040 commit e816179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func proxyHTTPScheme(dst http.RoundTripper, conn net.Conn, outgoingScheme string
276276
responsebody, err := decodeContent(&respbody, resp.Header["Content-Encoding"])
277277
if err != nil {
278278
errorf("error decoding response body as %v, will return raw bytes", resp.Header["Content-Encoding"])
279-
requestbody = reqbody.Bytes()
279+
responsebody = respbody.Bytes()
280280
}
281281

282282
// make the summary the we will log to disk and expose via the API

0 commit comments

Comments
 (0)