BUG/MEDIUM: http: Use pointer to the begining of input to parse message headers
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 10 May 2019 09:36:51 +0000 (11:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 10 May 2019 09:47:00 +0000 (11:47 +0200)
commit132f7b496ce238a4e619bdff4cc5d66b1b9409d0
tree8461611c6706996241f02d55fe3f99e17ed10ff2
parent7a3367cca0d1fddcfe6d13da31d0607dbd24e29e
BUG/MEDIUM: http: Use pointer to the begining of input to parse message headers

In the legacy HTTP, when the message headers are parsed, in http_msg_analyzer(),
we must use the begining of input and not the head of the buffer. Most of time,
it will be the same pointers because there is no outgoing data when a new
message is received. But when a 1xx informational response is parsed, it is
forwarded and the parsing restarts immediatly. In this case, we have outgoing
data when the next response is parsed.

This patch must be backported to 1.9.
src/http_msg.c