Skip to content

Commit

Permalink
remove N=1 check when decoding a literal field line with name reference
Browse files Browse the repository at this point in the history
This field is only used to determine if the dynamic table can be used
when this field is re-encoded. Since we currently don't support use of
the dynamic table, the N value is irrelevant.
  • Loading branch information
marten-seemann committed Sep 4, 2024
1 parent 9160514 commit 09a37c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (d *Decoder) parseIndexedHeaderField() error {

func (d *Decoder) parseLiteralHeaderField() error {
buf := d.buf
if buf[0]&0x20 > 0 || buf[0]&0x10 == 0 {
if buf[0]&0x10 == 0 {
return errNoDynamicTable
}
index, buf, err := readVarInt(4, buf)
Expand Down

0 comments on commit 09a37c5

Please sign in to comment.