diff --git a/modules/http_proxy_base.go b/modules/http_proxy_base.go index 830d8639..613d6737 100644 --- a/modules/http_proxy_base.go +++ b/modules/http_proxy_base.go @@ -309,8 +309,7 @@ func (p *HTTPProxy) httpsWorker() error { Host: hostname, Header: make(http.Header), } - resp := dumbResponseWriter{tlsConn} - p.Proxy.ServeHTTP(resp, req) + p.Proxy.ServeHTTP(dumbResponseWriter{tlsConn}, req) }(c) }