diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-15 14:21:34 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-16 15:00:28 +0200 |
commit | d0a9d3cdda6d1f784a23ea4bd9efd3134e292628 (patch) | |
tree | 487b353d40f6b17b9a16c0c055198ea770b908e1 /netlib/http2/protocol.py | |
parent | e3db241a2fa47a38fcb85532ed52eeecf1a7b965 (diff) | |
download | mitmproxy-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.py | 4 |
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: |