From 04465d25bc37941c895d8ee76d68055ab0779fb0 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 19 Nov 2024 07:48:01 +0100 Subject: [PATCH] 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. --- reg-tests/http-rules/h1or2_to_h1c.vtc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reg-tests/http-rules/h1or2_to_h1c.vtc b/reg-tests/http-rules/h1or2_to_h1c.vtc index 3dd907e16..89ae0f6a6 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}