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

Commit aeb13f7

Browse files
committed
No longer add static indices to header table.
1 parent 30e8578 commit aeb13f7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

hyper/http20/hpack.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,8 @@ def add(self, to_add, huffman=False):
281281
index, perfect = match
282282

283283
if perfect:
284-
# Indexed representation. If the index is larger than the size
285-
# of the header table, also add to the header table.
284+
# Indexed representation.
286285
encoded = self._encode_indexed(index)
287-
288-
if index > len(self.header_table):
289-
perfect = (name, value)
290-
self._add_to_header_table(perfect)
291286
else:
292287
# Indexed literal. Since we have a partial match, don't add to
293288
# the header table, it won't help us.

0 commit comments

Comments
 (0)