BUG/MINOR: htpp-ana/stats: Specify that HTX redirect messages have a C-L header

Redirect responses sent during the HTTP analysis have no payload. However
there is still a "Content-Length" header. It is important to set the
corresponding flag on the HTX start-line to be sure to preserve this header
when the reponse is sent to the client. The same is true with the stats
applet, when it returns a redirect responses.

It is especially important because we no ignore in-fly modifications of
"Content-Length" or "Transfer-Encoding" headers without updating the HTX
start-line flags.

This patch may be backported to all stable versions but it is probably
useless because only the 2.9-dev is affected by the bug.

(cherry picked from commit d0b04920d1497e6d953cb1b0be96599b4cf26cd5)
 [ad: picked as required for next patch]
Signed-off-by: Amaury Denoyelle <adenoyelle@haproxy.com>
(cherry picked from commit 617ec5cf7544f02e530cf541d1d214c1af025cb0)
Signed-off-by: Amaury Denoyelle <adenoyelle@haproxy.com>
(cherry picked from commit cab6964193413fd10d6eb0df5494ae6c0637b0e3)
Signed-off-by: Amaury Denoyelle <adenoyelle@haproxy.com>
2 files changed