From 5691a5f47839478609a88962e260514309a131d2 Mon Sep 17 00:00:00 2001 From: Erik Pellizzon Date: Fri, 20 Dec 2024 22:23:58 +0100 Subject: [PATCH] Fix error writer --- https.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }()