From b6123eede65f870061c5440027b0af5ced826ffe Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 25 May 2018 13:22:52 +0200 Subject: minor changes to stay in sync with sans-io --- mitmproxy/proxy/protocol/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)]) -- cgit v1.2.3