aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-06-16 16:22:51 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-06-16 16:22:51 +1200
commitd5a0099f4953f644bac24783d13042e3e8991e72 (patch)
tree4f745941384f4a0eeb8a10ad630808575bb5e8a1 /libmproxy/proxy.py
parent18a03c063e4c0f8023c5ae53fdceac6684ab7bff (diff)
downloadmitmproxy-d5a0099f4953f644bac24783d13042e3e8991e72.tar.gz
mitmproxy-d5a0099f4953f644bac24783d13042e3e8991e72.tar.bz2
mitmproxy-d5a0099f4953f644bac24783d13042e3e8991e72.zip
Test suite and refactoring for netlib.
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r--libmproxy/proxy.py4
1 files changed, 2 insertions, 2 deletions
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