diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-09 11:18:03 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-09 11:18:03 +1200 |
commit | 79af9e89c44597e58e6db0486a54e133e9def704 (patch) | |
tree | d4ab244cd23b5f93ddf16af6afcd0a2250dd2b5e /libmproxy/proxy.py | |
parent | aab45078adfdf143722aa021c7d7ad1b2eb61ed3 (diff) | |
download | mitmproxy-79af9e89c44597e58e6db0486a54e133e9def704.tar.gz mitmproxy-79af9e89c44597e58e6db0486a54e133e9def704.tar.bz2 mitmproxy-79af9e89c44597e58e6db0486a54e133e9def704.zip |
Test replay corner cases. Fix discovered bugs.
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r-- | libmproxy/proxy.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index bc7051d4..e7b2c409 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -67,11 +67,9 @@ class RequestReplayThread(threading.Thread): self.flow.request, httpversion, code, msg, headers, content, server.cert ) response._send(self.masterq) - except (ProxyError, http.HttpError), v: - err = flow.Error(self.flow.request, v.msg) + except (ProxyError, http.HttpError, tcp.NetLibError), v: + err = flow.Error(self.flow.request, str(v)) err._send(self.masterq) - except tcp.NetLibError, v: - raise ProxyError(502, v) class ServerConnection(tcp.TCPClient): |