diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 9b4d4d8f8..d9803a370 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -235,7 +235,8 @@ class HttpLayer(Layer): try: response = make_error_response(code, message) self.send_response(response) - except NetlibException as H2Error: + except (NetlibException, H2Error): + self.log(traceback.format_exc(), "debug") pass def change_upstream_proxy_server(self, address):