aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http2/protocol.py
diff options
context:
space:
mode:
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: