diff --git a/internal/communicator/ssh/http_proxy.go b/internal/communicator/ssh/http_proxy.go index e171380ab3..b175b6d530 100644 --- a/internal/communicator/ssh/http_proxy.go +++ b/internal/communicator/ssh/http_proxy.go @@ -100,7 +100,6 @@ func (p *proxyDialer) Dial(network, addr string) (net.Conn, error) { res, err := http.ReadResponse(bufio.NewReader(c), req) if err != nil { - res.Body.Close() c.Close() return nil, err }