]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: qpack: support litteral field line with non-huff name
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 24 Nov 2021 15:04:03 +0000 (16:04 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 25 Nov 2021 10:41:29 +0000 (11:41 +0100)
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

index a67ecb78fe450b45fb30d46e465f973159539c32..c130a34701f72362614126d4dd82df238ca63e1f 100644 (file)
@@ -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;