MINOR: http-rules: Add a flag on redirect rules to know the rule direction
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Jan 2020 08:13:41 +0000 (09:13 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 31 Mar 2020 16:08:48 +0000 (18:08 +0200)
commit7351c78970ccbf828dc4db2e0ff9bbe02ab3e194
treed36d51b952a95ed2421d96e020bb7868fad59da9
parent88b65f4d6b709eafa83537c44e486513c8ec45f5
MINOR: http-rules: Add a flag on redirect rules to know the rule direction

HTTP redirect rules can be evaluated on the request or the response path. So
when a redirect rule is evaluated, it is important to have this information
because some specific processing may be performed depending on the direction. So
the REDIRECT_FLAG_FROM_REQ flag has been added. It is set when applicable on the
redirect rule during the parsing.

This patch is mandatory to fix a bug on redirect rule. It must be backported to
all stable versions.

(cherry picked from commit c87e46881687b8ddb9b3f459e60edb1e8d7c5d7c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/types/http_ana.h
src/http_rules.c