REGTESTS: silence warning "previous 'http-response' action is final"

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.
This commit is contained in:
Willy Tarreau 2024-11-19 07:48:01 +01:00
parent 671f6beac1
commit 04465d25bc

View 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}