From b4fddbc3d2f2dcdc33c2809ffb2f1c07f76e034e Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 23 Jan 2026 00:46:05 +0000 Subject: [PATCH] no keepalive when request is proxied; consider each request individually rather than the previous general approach --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 6917dec0..ad42c249 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -397,9 +397,9 @@ class HttpCli(object): trusted_xff = False n = self.args.rproxy if n: - self.keepalive = False zso = self.headers.get(self.args.xff_hdr) if zso: + self.keepalive = False if n > 0: n -= 1