aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/protocols/http.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-24 17:39:55 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-24 17:39:55 +0200
commit96c9c4459f0bb9b76ab34f8c8d03d0e5d28621f4 (patch)
tree8c6f2fc9ef4c06c40a04514f651785540d278bf3 /libpathod/protocols/http.py
parentdc42e335058365ed7288463dcd8e5f61b03a87a2 (diff)
downloadmitmproxy-96c9c4459f0bb9b76ab34f8c8d03d0e5d28621f4.tar.gz
mitmproxy-96c9c4459f0bb9b76ab34f8c8d03d0e5d28621f4.tar.bz2
mitmproxy-96c9c4459f0bb9b76ab34f8c8d03d0e5d28621f4.zip
fix duplicated header reading
Diffstat (limited to 'libpathod/protocols/http.py')
-rw-r--r--libpathod/protocols/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpathod/protocols/http.py b/libpathod/protocols/http.py
index 82595126..ca2b28b4 100644
--- a/libpathod/protocols/http.py
+++ b/libpathod/protocols/http.py
@@ -41,7 +41,7 @@ class HTTPProtocol:
"""
Handle a CONNECT request.
"""
- self.wire_protocol.read_headers()
+
self.pathod_handler.wfile.write(
'HTTP/1.1 200 Connection established\r\n' +
('Proxy-agent: %s\r\n' % version.NAMEVERSION) +