mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
Reset the host header to the correct destination
This commit is contained in:
parent
c2c6050df3
commit
aaff9dfd32
@ -53,6 +53,7 @@ class Rerouter:
|
||||
if m.group("port"):
|
||||
port = int(m.group("port"))
|
||||
|
||||
flow.request.headers["Host"] = host_header
|
||||
flow.request.host = sni or host_header
|
||||
flow.request.port = port
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user