BUG/MINOR: http-htx: Do case-insensive comparisons on Host header name
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Feb 2020 08:47:07 +0000 (09:47 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Feb 2020 10:11:57 +0000 (11:11 +0100)
commit25ffccbe6501e3620956611689d204878ebb35f8
tree0a9c0a8dbb133b91c78f9d99e9f12b87b0468da1
parentb78784583d9661972d8e72a652309ef2f724e5c8
BUG/MINOR: http-htx: Do case-insensive comparisons on Host header name

When a header is added or modified, in http_add_header() or
http_replace_header(), a comparison is performed on its name to know if it is
the Host header and if the authority part of the uri must be updated or
not. This comparision must be case-insensive.

This patch should fix the issue #522. It must be backported to 2.1.

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