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:
Christopher Faulet 2020-03-06 15:44:37 +01:00
parent ddc005ae57
commit 49c2a707ce

View File

@ -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;