]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS : Add test support for case insentitive for url_param
authorMartin DOLEZ <martin@dolez.fr>
Thu, 30 Mar 2023 13:03:36 +0000 (09:03 -0400)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Mar 2023 13:32:14 +0000 (15:32 +0200)
Test using case insensitive is supported in /reg-tests/http-rules/h1or2_to_h1c.vtc

reg-tests/http-rules/h1or2_to_h1c.vtc

index 3423d162a102251068cc314bb9fb3810313477f6..90834c562f029d96afad7ec1d4bccb1f39d1604c 100644 (file)
@@ -131,7 +131,7 @@ haproxy h1 -conf {
        http-request set-header     sl1      "%[req.fhdr(sl1)] method=<%[var(req.method)]>; uri=<%[var(req.uri)]>; path=<%[var(req.path)]>;"
        http-request set-header     sl1      "%[req.fhdr(sl1)] query=<%[var(req.query)]>; param=<%[var(req.param)]>"
        http-request set-header     sl2      "%[req.fhdr(sl2)] method=<%[method]>; uri=<%[url]>; path=<%[path]>; "
-       http-request set-header     sl2      "%[req.fhdr(sl2)] query=<%[query]>; param=<%[url_param(qs_arg)]>"
+       http-request set-header     sl2      "%[req.fhdr(sl2)] query=<%[query]>; param=<%[url_param(QS_arg,,i)]>"
        http-request set-header     hdr      "%[req.fhdr(hdr)] hdr1=<%[req.hdr(hdr1)]>; fhdr1=<%[req.fhdr(hdr1)]>;"
        http-request set-header     hdr      "%[req.fhdr(hdr)] hdr2=<%[req.hdr(hdr2)]>; fhdr2=<%[req.fhdr(hdr2)]>;"
        http-request set-header     hdr      "%[req.fhdr(hdr)] hdr3=<%[req.hdr(hdr3)]>; fhdr3=<%[req.fhdr(hdr3)]>;"