mirror of
https://github.com/9001/copyparty.git
synced 2026-02-26 13:33:09 -07:00
no keepalive when request is proxied;
consider each request individually rather than the previous general approach
This commit is contained in:
parent
81e5eb7b27
commit
b4fddbc3d2
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue