]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: h3: use absolute URI form with :authority
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 16 Apr 2025 13:17:57 +0000 (15:17 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 16 Apr 2025 16:32:00 +0000 (18:32 +0200)
commit2c3d656f8d89a00e2fcd1ddf376d7115783125b2
tree97f4e21f63577c75566037d89cd4f83f51d80cbb
parent1faa1285aacaaacd2c2e062d87f04aa481843862
MEDIUM: h3: use absolute URI form with :authority

Change the representation of the start-line URI when parsing a HTTP/3
request into HTX. Adopt the same conversion as HTTP/2. If :authority
header is used (default case), the URI is encoded using absolute-form,
with scheme, host and path concatenated. If only a plain host header is
used instead, fallback to the origin form.

This commit may cause some configuration to be broken if parsing is
performed on the URI. Indeed, now most of the HTTP/3 requests will be
represented with an absolute-form URI at the stream layer.

Note that prior to this commit a check was performed on the path used as
URI to ensure that it did not contain any invalid characters. Now, this
is directly performed on the URI itself, which may include the path.

This must not be backported.
src/h3.c