]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: Add server name header from HTTP multiplexers
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 24 Sep 2019 14:20:05 +0000 (16:20 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Sep 2019 06:48:21 +0000 (08:48 +0200)
commit72ba6cd8c09596381b2ef8dbb81cef2284e32242
tree744d3bd463a981048e540477451e0f74c1498c5d
parentb1bb1afa4741a20e5bf954f0065ae7b747a3e219
MINOR: http: Add server name header from HTTP multiplexers

the option "http-send-name-header" is an eyesore. It was responsible of several
bugs because it is handled after the message analysis. With the HTX
representation, the situation is cleaner because no rewind on forwarded data is
required. But it remains ugly.

With recent changes in HAProxy, we have the opportunity to make it fairly
better. The message formatting in now done in the HTTP multiplexers. So it seems
to be the right place to handle this option. Now, the server name is added by
the HTTP multiplexers (h1, h2 and fcgi).
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/stream.c