mirror of
https://github.com/9001/copyparty.git
synced 2026-02-21 01:40:39 +10:00
no keepalive when request is proxied;
consider each request individually rather than the previous general approach
This commit is contained in:
@@ -397,9 +397,9 @@ class HttpCli(object):
|
|||||||
trusted_xff = False
|
trusted_xff = False
|
||||||
n = self.args.rproxy
|
n = self.args.rproxy
|
||||||
if n:
|
if n:
|
||||||
self.keepalive = False
|
|
||||||
zso = self.headers.get(self.args.xff_hdr)
|
zso = self.headers.get(self.args.xff_hdr)
|
||||||
if zso:
|
if zso:
|
||||||
|
self.keepalive = False
|
||||||
if n > 0:
|
if n > 0:
|
||||||
n -= 1
|
n -= 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user