From: Willy Tarreau Date: Tue, 19 Nov 2024 06:48:01 +0000 (+0100) Subject: REGTESTS: silence warning "previous 'http-response' action is final" X-Git-Tag: v3.1-dev14~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04465d25bc37941c895d8ee76d68055ab0779fb0;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/reg-tests/http-rules/h1or2_to_h1c.vtc b/reg-tests/http-rules/h1or2_to_h1c.vtc index 3dd907e163..89ae0f6a6f 100644 --- a/reg-tests/http-rules/h1or2_to_h1c.vtc +++ b/reg-tests/http-rules/h1or2_to_h1c.vtc @@ -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}