From 7d3aea50b81d992d08501f1177eae2943042a2d6 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Wed, 24 Nov 2021 16:04:03 +0100 Subject: [PATCH] MINOR: qpack: support litteral field line with non-huff name Support qpack header using a non-huffman encoded name in a litteral field line with name reference. This format is notably used by picoquic client and should improve haproxy interop covering. --- src/qpack-dec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qpack-dec.c b/src/qpack-dec.c index a67ecb78f..c130a3470 100644 --- a/src/qpack-dec.c +++ b/src/qpack-dec.c @@ -315,7 +315,10 @@ int qpack_decode_fs(const unsigned char *raw, size_t len, struct buffer *tmp, b_add(tmp, nlen); list[hdr_idx].v = ist2(trash, nlen); } - /* XXX Value string XXX */ + else { + list[hdr_idx].v = ist2(raw, length); + } + raw += length; len -= length; ++hdr_idx;