From ba946bf23a3e08bb95a80947f0fc087d1dd5d7cd Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 13 May 2020 08:50:07 +0200 Subject: [PATCH] BUG/MINOR: http-rules: Mark http return rules as final For HTTP rules, this flag is only used to trigger a warning during HAProxy startup when a final rule without ACL is not the last one. So this patch is marked as a bug, but its impact is really limited. No backport needed because http return rules were introduced in the 2.2. --- src/http_act.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http_act.c b/src/http_act.c index e6e3df4f81..66cbe13082 100644 --- a/src/http_act.c +++ b/src/http_act.c @@ -2417,6 +2417,7 @@ static enum act_parse_ret parse_http_return(const char **args, int *orig_arg, st free(obj); } + rule->flags |= ACT_FLAG_FINAL; rule->arg.http_return.status = status; rule->arg.http_return.ctype = ctype; rule->arg.http_return.hdrs = hdrs; -- 2.47.3