From 96c9c4459f0bb9b76ab34f8c8d03d0e5d28621f4 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Fri, 24 Jul 2015 17:39:55 +0200 Subject: [PATCH] fix duplicated header reading --- libpathod/protocols/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpathod/protocols/http.py b/libpathod/protocols/http.py index 825951260..ca2b28b45 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) +