]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-act: Use the good message to test strict rewritting mode
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Jan 2020 14:37:13 +0000 (15:37 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2020 08:36:36 +0000 (09:36 +0100)
commit91e31d83c989bdc579b76467c51f7fbe18908e54
treeb55afdaebf18799662f08b39624bddabfa0657e3
parentbde76f0de60c77330f49284b206cbca40832f0bf
BUG/MINOR: http-act: Use the good message to test strict rewritting mode

Since the strict rewritting mode was introduced, actions manipulating headers
(set/add/replace) always rely on the request message to test if the
HTTP_MSGF_SOFT_RW flag is set or not. But, of course, we must only rely on the
request for http-request rules. For http-response rules, we must use the
response message.

This patch must be backported if the strict rewritting is backported too.
src/http_act.c