]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: proto_htx: Rely on the HTX function to apply a redirect rules
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Jul 2019 10:05:35 +0000 (12:05 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
There is no reason to use the legacy HTTP version here, which falls back on the
HTX version in this case.

src/proto_htx.c

index 2fd67f79f0763a6eb65a9df5c8a72e54cc20bf67..b08f99969a0d442a6a2827aafaf776a25fec0cc9 100644 (file)
@@ -3412,7 +3412,7 @@ resume_execution:
 
                        case ACT_HTTP_REDIR:
                                rule_ret = HTTP_RULE_RES_DONE;
-                               if (!http_apply_redirect_rule(rule->arg.redir, s, txn))
+                               if (!htx_apply_redirect_rule(rule->arg.redir, s, txn))
                                        rule_ret = HTTP_RULE_RES_BADREQ;
                                goto end;