aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-01-31 04:45:39 +0100
committerMaximilian Hils <git@maximilianhils.com>2014-01-31 04:45:39 +0100
commit2db5f9de26f6ce2c90dfba86576d81fc3ce79924 (patch)
treee3b33d74f38941835bcab18a4c4bf7ac1d938456 /libmproxy/proxy.py
parent7d96ff00efd80b11ab35f7f1c9c7dd6aff9c9032 (diff)
downloadmitmproxy-2db5f9de26f6ce2c90dfba86576d81fc3ce79924.tar.gz
mitmproxy-2db5f9de26f6ce2c90dfba86576d81fc3ce79924.tar.bz2
mitmproxy-2db5f9de26f6ce2c90dfba86576d81fc3ce79924.zip
bring failing tests back into the double-digit range
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r--libmproxy/proxy.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index e69bb6da..e3e40c7b 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -172,7 +172,7 @@ class RequestReplayThread(threading.Thread):
)
self.channel.ask("response", response)
except (ProxyError, http.HttpError, tcp.NetLibError), v:
- err = flow.Error(self.flow.request, str(v))
+ err = flow.Error(str(v))
self.channel.ask("error", err)
"""
@@ -291,9 +291,10 @@ class ConnectionHandler:
A protocol handler must raise a ConnTypeChanged exception if it detects that this is happening
"""
# TODO: Implement SSL pass-through handling and change conntype
- passthrough = ["echo.websocket.org",
- "174.129.224.73" # echo.websocket.org, transparent mode
- ]
+ passthrough = [
+ "echo.websocket.org",
+ "174.129.224.73" # echo.websocket.org, transparent mode
+ ]
if self.server_conn.address.host in passthrough or self.sni in passthrough:
self.conntype = "tcp"
return