aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-01-18 21:44:27 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-04 09:52:02 +0100
commitdb38e5a1cc61d499839d3463b79bb5f21f330193 (patch)
tree9555aeaa97cdfa7eab07bb9e407c757f3d59dffe /libmproxy
parent24641d8561e6765b2aafada24fbefec2407eeeb3 (diff)
downloadmitmproxy-db38e5a1cc61d499839d3463b79bb5f21f330193.tar.gz
mitmproxy-db38e5a1cc61d499839d3463b79bb5f21f330193.tar.bz2
mitmproxy-db38e5a1cc61d499839d3463b79bb5f21f330193.zip
update hyper-h2 exception handling
Diffstat (limited to 'libmproxy')
-rw-r--r--libmproxy/protocol/http.py2
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())