http2: fix frame length field

This commit is contained in:
Thomas Kriechbaumer 2015-08-20 10:21:22 +02:00
parent e20d4e5c02
commit eb34305518

View File

@ -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)