aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-08 20:06:33 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-08 20:06:33 +0100
commitd5aa4f017d4a06ebe20fdb69563c319afd302ddb (patch)
treed3c8ed0cfbc17557fb2389cf27b9275a1c33ea24 /libmproxy/protocol
parentbee12019183c461497e8e8f05ccfd9460353a0cb (diff)
downloadmitmproxy-d5aa4f017d4a06ebe20fdb69563c319afd302ddb.tar.gz
mitmproxy-d5aa4f017d4a06ebe20fdb69563c319afd302ddb.tar.bz2
mitmproxy-d5aa4f017d4a06ebe20fdb69563c319afd302ddb.zip
fix syntax
Diffstat (limited to 'libmproxy/protocol')
-rw-r--r--libmproxy/protocol/http2.py3
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