]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: silence warning "previous 'http-response' action is final"
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 06:48:01 +0000 (07:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 07:06:26 +0000 (08:06 +0100)
The regtest "h1or2_to_h1c" contains both an allow and a deny at the end,
likely to help catch rare bugs. But this triggers a warning that we can
silence by placing a condition on the penultimate rule.

reg-tests/http-rules/h1or2_to_h1c.vtc

index 3dd907e1637c9fee02879f28aa19573bdf6310f6..89ae0f6a6f5aba9619323988d805a18ba5e0dc84 100644 (file)
@@ -165,7 +165,7 @@ haproxy h1 -conf {
        http-response set-header     sl1-crc "%[res.fhdr(sl1),crc32]"
        http-response set-header     sl2-crc "%[res.fhdr(sl2),crc32]"
        http-response set-header     hdr-crc "%[res.fhdr(hdr),crc32]"
-       http-response allow
+       http-response allow if TRUE
        http-response deny # must not be evaluated
 
        server s1 ${s1_addr}:${s1_port}