MINOR: h1: Reject requests with different occurrences of the header host
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Oct 2019 07:01:44 +0000 (09:01 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Oct 2019 20:28:50 +0000 (22:28 +0200)
commit497ab4f519f429b87cc47c7df7ea8a5ce369d567
tree155e9336af5da2a29456ddb41a015624d9778b7c
parent486498c630a0678446808107d02f94c48fc6722a
MINOR: h1: Reject requests with different occurrences of the header host

There is no reason for a client to send several headers host. It even may be
considered as a bug. However, it is totally invalid to have different values for
those. So now, in such case, an error is triggered during the request
parsing. In addition, when several headers host are found with the same value,
only the first instance is kept and others are skipped.
src/h1.c