mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 17:17:06 +02:00
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:
parent
a53abad42d
commit
ba946bf23a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user