Reset the host header to the correct destination

This commit is contained in:
Ammonite 2017-01-30 23:41:47 +01:00
parent c2c6050df3
commit aaff9dfd32

View File

@ -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