From 241e240f80b472a791a33181b174fb36bf28bb7d Mon Sep 17 00:00:00 2001 From: Erik Pellizzon Date: Fri, 20 Dec 2024 21:48:17 +0100 Subject: [PATCH] Close non persistent connection after first request --- https.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/https.go b/https.go index b9b1b0d9..cfe4612b 100644 --- a/https.go +++ b/https.go @@ -380,6 +380,11 @@ func (proxy *ProxyHttpServer) handleHttps(w http.ResponseWriter, r *http.Request return } } + + if ctx.Req.Close { + ctx.Logf("Non-persistent connection; closing") + return + } } ctx.Logf("Exiting on EOF") }()