diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-20 10:21:22 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-20 10:27:06 +0200 |
commit | eb343055185fabc892a590c6220b125283036b4e (patch) | |
tree | fd39c7ce89c809ee9847144e9b58a87d3026e268 /netlib | |
parent | e20d4e5c027ad7000f0d997ffb327817ef0dd557 (diff) | |
download | mitmproxy-eb343055185fabc892a590c6220b125283036b4e.tar.gz mitmproxy-eb343055185fabc892a590c6220b125283036b4e.tar.bz2 mitmproxy-eb343055185fabc892a590c6220b125283036b4e.zip |
http2: fix frame length field
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/http/http2/frame.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/http/http2/frame.py b/netlib/http/http2/frame.py index ad00a59a..24e6510a 100644 --- a/netlib/http/http2/frame.py +++ b/netlib/http/http2/frame.py @@ -98,7 +98,7 @@ class Frame(object): self._check_frame_size(self.length, self.state) - b = struct.pack('!HB', self.length & 0xFFFF00, self.length & 0x0000FF) + b = struct.pack('!HB', (self.length & 0xFFFF00) >> 8, self.length & 0x0000FF) b += struct.pack('!B', self.TYPE) b += struct.pack('!B', self.flags) b += struct.pack('!L', self.stream_id & 0x7FFFFFFF) |