diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-18 21:44:27 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-02-04 09:52:02 +0100 |
commit | db38e5a1cc61d499839d3463b79bb5f21f330193 (patch) | |
tree | 9555aeaa97cdfa7eab07bb9e407c757f3d59dffe /libmproxy/protocol | |
parent | 24641d8561e6765b2aafada24fbefec2407eeeb3 (diff) | |
download | mitmproxy-db38e5a1cc61d499839d3463b79bb5f21f330193.tar.gz mitmproxy-db38e5a1cc61d499839d3463b79bb5f21f330193.tar.bz2 mitmproxy-db38e5a1cc61d499839d3463b79bb5f21f330193.zip |
update hyper-h2 exception handling
Diffstat (limited to 'libmproxy/protocol')
-rw-r--r-- | libmproxy/protocol/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |