diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-02-08 20:06:33 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-02-08 20:06:33 +0100 |
commit | d5aa4f017d4a06ebe20fdb69563c319afd302ddb (patch) | |
tree | d3c8ed0cfbc17557fb2389cf27b9275a1c33ea24 | |
parent | bee12019183c461497e8e8f05ccfd9460353a0cb (diff) | |
download | mitmproxy-d5aa4f017d4a06ebe20fdb69563c319afd302ddb.tar.gz mitmproxy-d5aa4f017d4a06ebe20fdb69563c319afd302ddb.tar.bz2 mitmproxy-d5aa4f017d4a06ebe20fdb69563c319afd302ddb.zip |
fix syntax
-rw-r--r-- | libmproxy/protocol/http2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py index 7bf06d31..04ff8bf6 100644 --- a/libmproxy/protocol/http2.py +++ b/libmproxy/protocol/http2.py @@ -160,7 +160,8 @@ class Http2Layer(Layer): elif isinstance(event, StreamReset): self.streams[eid].zombie = time.time() self.client_reset_streams.append(self.streams[eid].client_stream_id) - self.server_reset_streams.append(self.streams[eid].server_stream_id) if self.streams[eid].server_stream_id + if self.streams[eid].server_stream_id: + self.server_reset_streams.append(self.streams[eid].server_stream_id) if eid in self.streams and event.error_code == 0x8: if is_server: other_stream_id = self.streams[eid].client_stream_id |