Skip to content

Commit

Permalink
Fix error writer (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikPelli authored Dec 20, 2024
1 parent 86a5c08 commit b739408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion https.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}()
Expand Down

0 comments on commit b739408

Please sign in to comment.