diff options
Diffstat (limited to 'libmproxy')
-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 |