From: Christopher Faulet Date: Mon, 15 Jul 2019 10:05:35 +0000 (+0200) Subject: MINOR: proto_htx: Rely on the HTX function to apply a redirect rules X-Git-Tag: v2.1-dev2~386 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00618aadf9be75c2eea392dffeab2ac8acfa350c;p=thirdparty%2Fhaproxy.git MINOR: proto_htx: Rely on the HTX function to apply a redirect rules There is no reason to use the legacy HTTP version here, which falls back on the HTX version in this case. --- diff --git a/src/proto_htx.c b/src/proto_htx.c index 2fd67f79f0..b08f99969a 100644 --- a/src/proto_htx.c +++ b/src/proto_htx.c @@ -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;