diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-02-14 01:27:51 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-14 01:27:51 +0100 |
commit | a54fc2785f57850432d87a45b646d34d01b8edf4 (patch) | |
tree | 418135430072d7ec08102bb9333f682865d9e7b2 /libmproxy/models/http.py | |
parent | bd68b4f6781dfb7f2e147fdcfcd8466cbb747ab3 (diff) | |
parent | d60257e767a8cc47054504c1e862196a19fda864 (diff) | |
download | mitmproxy-a54fc2785f57850432d87a45b646d34d01b8edf4.tar.gz mitmproxy-a54fc2785f57850432d87a45b646d34d01b8edf4.tar.bz2 mitmproxy-a54fc2785f57850432d87a45b646d34d01b8edf4.zip |
Merge pull request #932 from fimad/master
Do not send Proxy-Agent in CONNECT responses, fix #783
Diffstat (limited to 'libmproxy/models/http.py')
-rw-r--r-- | libmproxy/models/http.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libmproxy/models/http.py b/libmproxy/models/http.py index 3c024e76..a2a345d7 100644 --- a/libmproxy/models/http.py +++ b/libmproxy/models/http.py @@ -456,14 +456,13 @@ def make_connect_request(address): def make_connect_response(http_version): - headers = Headers( - Proxy_Agent=version.NAMEVERSION - ) + # Do not send any response headers as it breaks proxying non-80 ports on + # Android emulators using the -http-proxy option. return HTTPResponse( http_version, 200, "Connection established", - headers, + Headers(), "", ) |