From db38e5a1cc61d499839d3463b79bb5f21f330193 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Mon, 18 Jan 2016 21:44:27 +0100 Subject: update hyper-h2 exception handling --- libmproxy/protocol/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmproxy') diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 74bb0c19..a7160e43 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -158,7 +158,7 @@ class SafeH2Connection(H2Connection): with self.lock: try: self.reset_stream(stream_id, error_code) - except h2.exceptions.ProtocolError: + except h2.exceptions.StreamClosedError: # stream is already closed - good pass self.conn.send(self.data_to_send()) -- cgit v1.2.3