]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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>
Thu, 6 Feb 2020 13:55:34 +0000 (14:55 +0100)
commitc87e46881687b8ddb9b3f459e60edb1e8d7c5d7c
tree2acbbd26ba2869c4d93f34795b15ae8611481a5a
parentc20afb810f9368b026f2fea9640d04a004087f19
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.
include/types/http_ana.h
src/http_rules.c