]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REG-TESTS: map_redirect: Don't use hdr_dom in ACLs with "-m end" matching method
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Sep 2025 13:37:50 +0000 (15:37 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Sep 2025 13:45:05 +0000 (15:45 +0200)
commitd09d7676d024f12a92390d7589895a2c4bae8e2b
tree16efe0d73720634840779bd355d20ceee328dd8d
parent1868ca9a951c699951cf2ccfd8aa7c61922ae338
REG-TESTS: map_redirect: Don't use hdr_dom in ACLs with "-m end" matching method

hdr_dom() is a alias of "hdr() -m dom". So using it with another explicit
matching method does not work because the matching on the domain will never
be performed. Only the last matching method is used. The scripts was working
by chance because no port was set on host header values.

The script was fixed by using "host_only" converter. In addition, host
header values were changed to have a port now.
reg-tests/http-rules/map_redirect.vtc