BUG/MEDIUM: http-ana: Don't eval http-after-response ruleset on empty messages
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Nov 2020 15:44:02 +0000 (16:44 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 20 Nov 2020 09:07:38 +0000 (10:07 +0100)
commit32ccee1b16269fad3a47a0c1d5eeba983e5251c2
treef1c95cce8cfb329b5ba1fc0da898f5967ee5e0ea
parent829d071d0ca39288990dbd821c7925825ae7819b
BUG/MEDIUM: http-ana: Don't eval http-after-response ruleset on empty messages

It is not possible on response comming from a server, but an errorfile may be
empty. In this case, the http-after-response ruleset must not be evaluated
because it is totally unexpected to manipulate headers on an empty HTX message.

This patch must be backported everywhere the http-after-response rules are
supported, i.e as far as 2.2.

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