mirror of
https://github.com/9001/copyparty.git
synced 2025-10-06 03:50:30 +02:00
v1.6.12
This commit is contained in:
parent
2459965ca8
commit
42099baeff
8 changed files with 49 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue