]> git.kaiwu.me - haproxy.git/commit
REGTESTS: uri_normalizer: test a normalizer used with a condition
authorYoungkwang Lee <ykglory0216@gmail.com>
Wed, 9 Sep 2026 08:31:04 +0000 (17:31 +0900)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Sep 2026 09:37:23 +0000 (11:37 +0200)
commitb54c7a8237f3dbfb285916a48b8335727300d5df
treefa7dd35f227512b51ec8f5e9d750da031b1a3ebc
parenteede820682667334bad21b2b666b419520f4c77c
REGTESTS: uri_normalizer: test a normalizer used with a condition

The existing tests always use the normalizers unconditionally, so the
selection of the normalizer when a condition directly follows a
normalizer whose sub-option is omitted was not covered.

The request uses both a percent sequence and duplicate slashes so that
the expected result differs depending on which normalizer is picked:
percent-decode-unreserved leaves the duplicate slashes alone, while
path-merge-slashes, which was wrongly selected before the previous
commit, would merge them and leave the percent sequence encoded.
reg-tests/http-rules/normalize_uri.vtc