Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit ad6100e

Browse files
committed
Header table size change is 5 bits now.
1 parent ec6be37 commit ad6100e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hyper/http20/hpack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def _encode_table_size_change(self):
391391
"""
392392
Produces the encoded form of a header table size change context update.
393393
"""
394-
size_bytes = encode_integer(self.header_table_size, 4)
394+
size_bytes = encode_integer(self.header_table_size, 5)
395395
size_bytes[0] |= 0x20
396396
return bytes(size_bytes)
397397

@@ -572,7 +572,7 @@ def _update_encoding_context(self, data):
572572
Handles a byte that updates the encoding context.
573573
"""
574574
# We've been asked to resize the header table.
575-
new_size, consumed = decode_integer(data, 4)
575+
new_size, consumed = decode_integer(data, 5)
576576
self.header_table_size = new_size
577577
return consumed
578578

0 commit comments

Comments
 (0)