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.
This commit is contained in:
Christopher Faulet 2020-05-13 08:50:07 +02:00
parent a53abad42d
commit ba946bf23a

View File

@ -2417,6 +2417,7 @@ static enum act_parse_ret parse_http_return(const char **args, int *orig_arg, st
free(obj); free(obj);
} }
rule->flags |= ACT_FLAG_FINAL;
rule->arg.http_return.status = status; rule->arg.http_return.status = status;
rule->arg.http_return.ctype = ctype; rule->arg.http_return.ctype = ctype;
rule->arg.http_return.hdrs = hdrs; rule->arg.http_return.hdrs = hdrs;