mirror of
https://github.com/9001/copyparty.git
synced 2026-03-31 12:33:05 +10:00
v1.6.12
This commit is contained in:
@@ -264,7 +264,7 @@ class HttpCli(object):
|
||||
self.is_https = (
|
||||
self.headers.get("x-forwarded-proto", "").lower() == "https" or self.tls
|
||||
)
|
||||
self.host = self.headers.get("host")
|
||||
self.host = self.headers.get("host") or ""
|
||||
if not self.host:
|
||||
zs = "{}:{}".format(*list(self.s.getsockname()[:2]))
|
||||
self.host = zs[7:] if zs.startswith("::ffff:") else zs
|
||||
|
||||
Reference in New Issue
Block a user