diff options
| author | Aldo Cortesi <aldo@corte.si> | 2017-12-12 21:54:27 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-12 21:54:27 +1300 |
| commit | 472d122c12c22f6cc5ebd2e139a2132c77267526 (patch) | |
| tree | 25983c669c533eba79439d46766050541e8f0508 | |
| parent | 25cf3db65853d66832e8bef81e7a431181172bd2 (diff) | |
| parent | 7f8a598097e50072f5e2da78f7c1b97225f97c5a (diff) | |
| download | mitmproxy-472d122c12c22f6cc5ebd2e139a2132c77267526.tar.gz mitmproxy-472d122c12c22f6cc5ebd2e139a2132c77267526.tar.bz2 mitmproxy-472d122c12c22f6cc5ebd2e139a2132c77267526.zip | |
Merge pull request #2662 from mhils/pathod-connect-host
Add host header to pathoc's CONNECT requests
| -rw-r--r-- | pathod/pathoc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pathod/pathoc.py b/pathod/pathoc.py index e1052750..20a915c0 100644 --- a/pathod/pathoc.py +++ b/pathod/pathoc.py @@ -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)) |
