]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h3: filter upgrade connection header
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 16 Apr 2025 09:20:42 +0000 (11:20 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 16 Apr 2025 16:31:04 +0000 (18:31 +0200)
commit6403bfbce8ea54ba83e23d34c5d52ff10fa7fe22
tree555f471085b38ced104838353bf02cb8e2492cdd
parentbd3587574dae43cc019d8e9998e0996c75550de4
BUG/MINOR: h3: filter upgrade connection header

As specified in RFC 9114, connection headers required special care in
HTTP/3. When a request is received with connection headers, the stream
is immediately closed. Conversely, when translating the response from
HTX, such headers are not encoded but silently ignored.

However, "upgrade" was not listed in connection headers. This commit
fixes this by adding a check on it both on request parsing and response
encoding.

This must be backported up to 2.6.
src/h3.c