mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
add host header to pathoc's CONNECT requests
This is required by the new HTTP RFCs.
This commit is contained in:
parent
b8cbb4dce8
commit
7f8a598097
@ -244,6 +244,7 @@ class Pathoc(tcp.TCPClient):
|
||||
port=connect_to[1],
|
||||
path=None,
|
||||
http_version='HTTP/1.1',
|
||||
headers=[(b"Host", connect_to[0].encode("idna"))],
|
||||
content=b'',
|
||||
)
|
||||
self.wfile.write(net_http.http1.assemble_request(req))
|
||||
|
Loading…
Reference in New Issue
Block a user