diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-12-17 18:59:50 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-12-17 18:59:50 +0100 |
commit | 975d1b87a3c0531e196084434a168644d9c187f9 (patch) | |
tree | b6b6588f48c2aca680fcb3d05c9eebcf4fd26d01 | |
parent | ea62521f038effc0fa6eb2a0d67e1de963ecbdee (diff) | |
download | mitmproxy-975d1b87a3c0531e196084434a168644d9c187f9.tar.gz mitmproxy-975d1b87a3c0531e196084434a168644d9c187f9.tar.bz2 mitmproxy-975d1b87a3c0531e196084434a168644d9c187f9.zip |
fix #1867 (#1873)
-rw-r--r-- | mitmproxy/proxy/protocol/http.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mitmproxy/proxy/protocol/http.py b/mitmproxy/proxy/protocol/http.py index 50d64e17..59de070f 100644 --- a/mitmproxy/proxy/protocol/http.py +++ b/mitmproxy/proxy/protocol/http.py @@ -1,6 +1,5 @@ import h2.exceptions import time -import traceback import enum from mitmproxy import connections # noqa @@ -431,7 +430,7 @@ class HttpLayer(base.Layer): response = http.make_error_response(code, message, headers) self.send_response(response) except (exceptions.NetlibException, h2.exceptions.H2Error, exceptions.Http2ProtocolException): - self.log(traceback.format_exc(), "debug") + self.log("Failed to send error response to client: {}".format(message), "debug") def change_upstream_proxy_server(self, address) -> None: # Make set_upstream_proxy_server always available, |