From d5aa4f017d4a06ebe20fdb69563c319afd302ddb Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Mon, 8 Feb 2016 20:06:33 +0100 Subject: [PATCH] fix syntax --- libmproxy/protocol/http2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py index 7bf06d31a..04ff8bf66 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