diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 74bb0c19b..a7160e432 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())