]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h3: Declare absolute URI as normalized when a :authority is found
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 May 2025 09:20:24 +0000 (11:20 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 May 2025 09:47:23 +0000 (11:47 +0200)
commite70c23e5178e4239208adf92c87df009ecb7ef4a
tree94fe09710380604eed7b29b4d80d4ee79e666c60
parentda9792cca85366e3da4d716c0eb4a6a8bb9c1e62
BUG/MEDIUM: h3: Declare absolute URI as normalized when a :authority is found

Since commit 2c3d656f8 ("MEDIUM: h3: use absolute URI form with
:authority"), the absolute URI form is used when a ':authority'
pseudo-header is found. However, this URI was not declared as normalized
internally.  So, when the request is reformated to be sent to an h1 server,
the absolute-form is used instead of the origin-form. It is unexpected and
may be an issue for some servers that could reject the request.

So, now, we take care to set HTX_SL_F_HAS_AUTHORITY flag on the HTX message
when an authority was found and HTX_SL_F_NORMALIZED_URI flag is set for
"http" or "https" schemes.

No backport needed because the commit above must not be backported. It
should fix a regression reported on the 3.2-dev17 in issue #2977.

This commit depends on "BUG/MINOR: h3: Set HTX flags corresponding to the
scheme found in the request".
src/h3.c