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:01:17 +0000 (14:01 +0100)
commitbc7c03eba39ec9f0b94734399853bbece1e1a250
tree4aeb954c578d1a4b5cb03307608fdb751c079b18
parentc65f656d75091db3087a752dbc956159392fc8f2
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.
src/h1.c