mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-01 01:32:04 +00:00
BUG/MINOR: http-rules: Abort transaction when a redirect is applied on response
In the same way than for the request, when a redirect rule is applied the transction is aborted. This must be done returning HTTP_RULE_RES_ABRT from http_res_get_intercept_rule() function. No backport needed because on previous versions, the action return values are not handled the same way.
This commit is contained in:
parent
ddc005ae57
commit
49c2a707ce
@ -3110,7 +3110,7 @@ resume_execution:
|
||||
break;
|
||||
|
||||
case ACT_HTTP_REDIR:
|
||||
rule_ret = HTTP_RULE_RES_DONE;
|
||||
rule_ret = HTTP_RULE_RES_ABRT;
|
||||
if (!http_apply_redirect_rule(rule->arg.redir, s, txn))
|
||||
rule_ret = HTTP_RULE_RES_ERROR;
|
||||
goto end;
|
||||
|
Loading…
Reference in New Issue
Block a user