Cleanup CONNECTION response
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Fri, 8 Jan 2010 16:09:14 +0000 (16:09 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Fri, 8 Jan 2010 16:09:14 +0000 (16:09 +0000)
sproxy

diff --git a/sproxy b/sproxy
index e8c4e47287957ea59f77d5a2a0e70a946757d625..aba7cde2597d2ffaad7cc37668d1df7776c7e2f5 100755 (executable)
--- a/sproxy
+++ b/sproxy
@@ -509,8 +509,8 @@ class ProxyConnectionIn(threading.Thread):
                 logging.info("%s %s %s %s %s", request_in.http_method, request_in.parsed_url.geturl(), request_in.http_version, response.line1[9:12], len(response.data) or '-')
 
             elif request_in.http_method == 'CONNECT':
-                #HttpErrorResponse(200, 'Proceed', '\r\n').send_to(self.clientsocket)
-                self.clientsocket.send('HTTP/1.1 200 Proceed\r\n\r\n\r\n')
+                HttpErrorResponse(200, 'Proceed', '').send_to(self.clientsocket)
+                #self.clientsocket.send('HTTP/1.1 200 Proceed\r\n\r\n\r\n')
 
                 ssl_context = SSL.Context(SSL.SSLv23_METHOD)
                 ssl_context.use_privatekey_file ('certs/proxy.key')