From d5a0099f4953f644bac24783d13042e3e8991e72 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 16 Jun 2012 16:22:51 +1200 Subject: Test suite and refactoring for netlib. --- libmproxy/proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmproxy/proxy.py') diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index 54536b39..9ebe0153 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -255,7 +255,7 @@ class ServerConnection(netlib.TCPClient): netlib.TCPClient.__init__( self, True if scheme == "https" else False, - host, + host, port, clientcert ) @@ -305,7 +305,7 @@ class ServerConnection(netlib.TCPClient): try: if not self.wfile.closed: self.wfile.flush() - self.sock.close() + self.connection.close() except IOError: pass -- cgit v1.2.3