diff options
-rw-r--r-- | mitmproxy/proxy/protocol/http.py | 2 |
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)]) |