BUG/MINOR: h1: Don't test the host header during response parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Nov 2019 13:00:51 +0000 (14:00 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Nov 2019 13:25:50 +0000 (14:25 +0100)
commitfa137e3b5c994508370e0cd2396ece081a1316c4
tree08e640bc45bf81a54b7450910283556f424eab2a
parent8ec21c5fef89f13fea2ac9be55d55215d4b9104a
BUG/MINOR: h1: Don't test the host header during response parsing

During the H1 message parsing, the host header is tested to be sure it matches
the request's authority, if defined. When there are multiple host headers, we
also take care they are all the same. Of course, these tests must only be
performed on the requests. A host header in a response has no special meaning.

This patch must be backported to 2.1.

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