]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: http-htx: Don't normalize emtpy path for OPTIONS requests
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Apr 2026 13:20:50 +0000 (15:20 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Apr 2026 13:26:13 +0000 (15:26 +0200)
commit77a6f1157836952390ede9a9bbc68c5b8e780cfe
treefaa42cf2318a5a2c6591926e53be3f0ae3710821
parent57faf0971593e45c17fd03ddb2034c736411efbe
BUG/MINOR: http-htx: Don't normalize emtpy path for OPTIONS requests

When the scheme-based normalization is performed, an empty path is
normalized to "/". But as stated in RFC9110#4.2.3, this must not be applied
on OPTIONS requests.

So let's fix the issue by adding a test on the method.

Thanks to @zhanhb for the bug report and the analysis.

This patch should fix the issue #3352. It must be backported as far as 3.0.
src/http_htx.c