mirror of
https://github.com/9001/copyparty.git
synced 2026-11-10 12:48:26 +00:00
no keepalive when request is proxied;
consider each request individually rather than the previous general approach
This commit is contained in:
1 parent
81e5eb7b27
commit
b4fddbc3d2
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user