diff --git a/pkg/proxy/http.go b/pkg/proxy/http.go index 4d23731a0d..a554480dc0 100644 --- a/pkg/proxy/http.go +++ b/pkg/proxy/http.go @@ -50,10 +50,11 @@ func (p *SReverseProxy) ServeHTTP(ctx context.Context, w http.ResponseWriter, r log.Debugf("Forwarding to servie: %q, url: %q", p.serviceName, remoteUrl.String()) proxy := httputil.NewSingleHostReverseProxy(remoteUrl) proxy.Transport = &http.Transport{ - TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + Proxy: http.ProxyFromEnvironment, + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + DisableKeepAlives: true, } r.Header.Del("Cookie") r.Header.Del("X-Auth-Token") proxy.ServeHTTP(w, r) - return }