MINOR: http: Remove headers matching the name of http-send-name-header option
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Oct 2019 08:51:38 +0000 (10:51 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Oct 2019 14:12:02 +0000 (16:12 +0200)
commit67d580994e4662793e4231870e5643053ed026cd
tree7894167550b4eb57fd522bb20b5142b166e9584e
parentdabcc8eb4767dbd40e13180902dcd54518726b40
MINOR: http: Remove headers matching the name of http-send-name-header option

It is not explicitly stated in the documentation, but some users rely on this
behavior. When the server name is inserted in a request, headers with the same
name are first removed.

This patch is not tagged as a bug, because it is not explicitly documented. We
choose to keep the same implicit behavior to not break existing
configuration. Because this option is used very little, it is not a big deal.
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c