BUG/MINOR: h1-htx: Fix a typo when request parser is reset
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Sep 2021 13:38:26 +0000 (15:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Sep 2021 14:10:36 +0000 (16:10 +0200)
commit216d3352b1aac1bff19383b6a6e5476e11e613e9
treea049aa0813c0c32db57a44f831f91bfb5a6a5877
parentcde911231ea157d88e5828c2c2e10e1b2db652aa
BUG/MINOR: h1-htx: Fix a typo when request parser is reset

In h1_postparse_req_hdrs(), if we need more space to copy headers, the request
parser is reset. However, because of a typo, it was reset as a response parser
instead of a request one. h1m_init_req() must be called.

This patch must be backported as far as 2.2.
src/h1_htx.c