mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-31 07:18:58 +00:00
http2: fix frame length field
This commit is contained in:
parent
e20d4e5c02
commit
eb34305518
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user