diff --git a/https.go b/https.go index de21e460..11fa4747 100644 --- a/https.go +++ b/https.go @@ -157,7 +157,7 @@ func (proxy *ProxyHttpServer) handleHttps(w http.ResponseWriter, r *http.Request go func() { err := copyOrWarn(ctx, targetSiteCon, proxyClient) if err != nil && proxy.ConnectionErrHandler != nil { - proxy.ConnectionErrHandler(w, ctx, err) + proxy.ConnectionErrHandler(proxyClient, ctx, err) } _ = targetSiteCon.Close() }()