BUG/MINOR: h3: properly handle connection headers
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 17 Jan 2023 16:47:06 +0000 (17:47 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 19 Jan 2023 14:09:01 +0000 (15:09 +0100)
commit8ad2669175f9a727009a45e6f7738e7dc62606fc
tree9f99801e7f0254a501b1d36fc0b8c6460f995d9d
parentd1ebee17740683fd49a88c4064ac1ff6a0dea264
BUG/MINOR: h3: properly handle connection headers

Connection headers are not used in HTTP/3. As specified by RFC 9114, a
received message containing one of those is considered as malformed and
rejected. When converting an HTX message to HTTP/3, these headers are
silently skipped.

This must be backported up to 2.6. Note that assignment to <h3s.err>
must be removed on 2.6 as stream level error has been introduced in 2.7
so this field does not exist in 2.6 A connection error will be used
instead automatically.
src/h3.c