aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-08-10 23:07:22 +1200
committerAldo Cortesi <aldo@nullcube.com>2013-08-10 23:07:22 +1200
commit2c4e5e0a73630c8c540ee3d512a6190769b2cbb9 (patch)
tree2d51e16a71317cf9c4ce2c3702b0230def8d60a3 /libmproxy/proxy.py
parentedb10e33aa84c45410bfbd1088b7714245c9f154 (diff)
downloadmitmproxy-2c4e5e0a73630c8c540ee3d512a6190769b2cbb9.tar.gz
mitmproxy-2c4e5e0a73630c8c540ee3d512a6190769b2cbb9.tar.bz2
mitmproxy-2c4e5e0a73630c8c540ee3d512a6190769b2cbb9.zip
Better handling of cert errors on connection.
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r--libmproxy/proxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index 08d095b0..a4290ec1 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -263,7 +263,7 @@ class ProxyHandler(tcp.BaseHandler):
# disconnect.
if http.response_connection_close(response.httpversion, response.headers):
return
- except (IOError, ProxyError, http.HttpError, tcp.NetLibDisconnect), e:
+ except (IOError, ProxyError, http.HttpError, tcp.NetLibError), e:
if hasattr(e, "code"):
cc.error = "%s: %s"%(e.code, e.msg)
else: