]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-htx: Support default path during scheme based normalization
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 May 2024 13:59:35 +0000 (15:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 May 2024 14:17:24 +0000 (16:17 +0200)
commit8d2514e0872a597e2f72659924aa67352b78c4d4
treef0459ad6b30cb3906a96729e24bdfe46e48e7d36
parentc16eba8183a0f362cd7d72beba3080ecf5449c87
BUG/MINOR: http-htx: Support default path during scheme based normalization

As stated in RFC3986, for an absolute-form URI, an empty path should be
normalized to a path of "/". This is part of scheme based normalization
rules. This kind of normalization is already performed for default ports. So
we might as well deal with the case of empty path.

The associated reg-tests was updated accordingly.

This patch should fix the issue #2573. It may be backported as far as 2.4 if
necessary.
reg-tests/http-messaging/h1_host_normalization.vtc
src/http_htx.c