Skip to content

Commit 42a681a

Browse files
authored
Fix HTTP/1.1 CONNECT response close (#3652)
1 parent fbff142 commit 42a681a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

proxy/http/client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ func setUpHTTPTunnel(ctx context.Context, dest net.Destination, target string, u
213213
rawConn.Close()
214214
return nil, nil, err
215215
}
216-
defer resp.Body.Close()
217216

218217
if resp.StatusCode != http.StatusOK {
219218
rawConn.Close()

0 commit comments

Comments
 (0)