aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http2/protocol.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-15 14:21:34 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-16 15:00:28 +0200
commitd0a9d3cdda6d1f784a23ea4bd9efd3134e292628 (patch)
tree487b353d40f6b17b9a16c0c055198ea770b908e1 /netlib/http2/protocol.py
parente3db241a2fa47a38fcb85532ed52eeecf1a7b965 (diff)
downloadmitmproxy-d0a9d3cdda6d1f784a23ea4bd9efd3134e292628.tar.gz
mitmproxy-d0a9d3cdda6d1f784a23ea4bd9efd3134e292628.tar.bz2
mitmproxy-d0a9d3cdda6d1f784a23ea4bd9efd3134e292628.zip
http2: only first headers frame as END_STREAM flag
Diffstat (limited to 'netlib/http2/protocol.py')
-rw-r--r--netlib/http2/protocol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/http2/protocol.py b/netlib/http2/protocol.py
index 24fcb712..682b7863 100644
--- a/netlib/http2/protocol.py
+++ b/netlib/http2/protocol.py
@@ -196,9 +196,9 @@ class HTTP2Protocol(object):
if isinstance(frm, frame.HeadersFrame)\
or isinstance(frm, frame.ContinuationFrame):
header_block_fragment += frm.header_block_fragment
+ if frm.flags & frame.Frame.FLAG_END_STREAM:
+ body_expected = False
if frm.flags & frame.Frame.FLAG_END_HEADERS:
- if frm.flags & frame.Frame.FLAG_END_STREAM:
- body_expected = False
break
while body_expected: