BUG/MINOR: h1: Properly reset h1m when parsing is restarted

Otherwise some processing may be performed twice. For instance, if the header
"Content-Length" is parsed on the first pass, when the parsing is restarted, we
skip it because we think another header with the same value was already seen. In
fact, it is currently the only existing bug that can be encountered. But it is
safer to reset all the h1m on restart to avoid any future bugs.

This patch must be backported to 2.0 and 1.9

(cherry picked from commit 84f06533e169ce34afad9e48fa6d3b0f614d4ad0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed