mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-01-12 22:48:54 +08:00
Fix host extraction
This commit is contained in:
@@ -51,7 +51,7 @@ class Rerouter:
|
||||
|
||||
m = parse_host_header.match(self.host_header)
|
||||
if m:
|
||||
host_header = m.group("host").strip("[]")
|
||||
self.host_header = m.group("host").strip("[]")
|
||||
if m.group("port"):
|
||||
port = int(m.group("port"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user