Fix host extraction
This commit is contained in:
parent
e8fc4af4c6
commit
0ca1916f1b
|
@ -51,7 +51,7 @@ class Rerouter:
|
||||||
|
|
||||||
m = parse_host_header.match(self.host_header)
|
m = parse_host_header.match(self.host_header)
|
||||||
if m:
|
if m:
|
||||||
host_header = m.group("host").strip("[]")
|
self.host_header = m.group("host").strip("[]")
|
||||||
if m.group("port"):
|
if m.group("port"):
|
||||||
port = int(m.group("port"))
|
port = int(m.group("port"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue