MINOR: http-rules: Handle the rule direction when a redirect is evaluated
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Jan 2020 08:18:10 +0000 (09:18 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 31 Mar 2020 16:18:44 +0000 (18:18 +0200)
commit8956a7615149852fc4fa7f49536a657c198aced7
treea778bca2e0e7f5672abbf121d8e2b72aca72061e
parent637c74833073d017a8520ec39c5be922567e3e6f
MINOR: http-rules: Handle the rule direction when a redirect is evaluated

The rule direction must be tested to do specific processing on the request
path. intercepted_req counter shoud be updated if the rule is evaluated on the
frontend and remaining request's analyzers must be removed. But only on the
request path. The rule direction must also be tested to set the right final
stream state flag.

This patch depends on the commit "MINOR: http-rules: Add a flag on redirect
rules to know the rule direction". Both must be backported to all stable
versions.

(cherry picked from commit 60b33a5a625cdc8e956d4f43aca5ab795240be33)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>

[Cf: Thes BUG label is missing for this patch. It is the bug mentionned by the
commit "MINOR: http-rules: Add a flag on redirect rules to know the rule
direction".]
src/http_ana.c