From 09a37c55a544f313e49b70ac1523cc01f2e00c72 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 4 Sep 2024 10:57:28 +0800 Subject: [PATCH] remove N=1 check when decoding a literal field line with name reference 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. --- decoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decoder.go b/decoder.go index c900194..40bc79e 100644 --- a/decoder.go +++ b/decoder.go @@ -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)