mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Merge pull request #2662 from mhils/pathod-connect-host
Add host header to pathoc's CONNECT requests
This commit is contained in:
commit
472d122c12
@ -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