aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/proxy
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2018-05-25 13:22:52 +0200
committerMaximilian Hils <git@maximilianhils.com>2018-05-25 13:22:52 +0200
commitb6123eede65f870061c5440027b0af5ced826ffe (patch)
treef779a67ccc1f4ea5b7866c0fccba4881d04b46d0 /mitmproxy/proxy
parent76c056affdad6a8f57a523534c56a50524c8f7e9 (diff)
downloadmitmproxy-b6123eede65f870061c5440027b0af5ced826ffe.tar.gz
mitmproxy-b6123eede65f870061c5440027b0af5ced826ffe.tar.bz2
mitmproxy-b6123eede65f870061c5440027b0af5ced826ffe.zip
minor changes to stay in sync with sans-io
Diffstat (limited to 'mitmproxy/proxy')
-rw-r--r--mitmproxy/proxy/protocol/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/proxy/protocol/http.py b/mitmproxy/proxy/protocol/http.py
index 66390e15..2ae656b3 100644
--- a/mitmproxy/proxy/protocol/http.py
+++ b/mitmproxy/proxy/protocol/http.py
@@ -291,7 +291,7 @@ class HttpLayer(base.Layer):
self.channel.ask("error", f)
raise exceptions.ProtocolException(
"HTTP protocol error in client request: {}".format(e)
- )
+ ) from e
self.log("request", "debug", [repr(request)])