]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: httpclient: use a placeholder value for Host header
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 2 Nov 2021 14:22:10 +0000 (15:22 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 2 Nov 2021 14:53:09 +0000 (15:53 +0100)
commit0f41c384ea7de2a5b10d49423a21e79aaafe0536
treee4d0cfb6ead01330168faa4676799613429262fb
parent5592c7b455dc89584e1241f3952ca5e5c9fbf687
BUG/MINOR: httpclient: use a placeholder value for Host header

A Host header must be present for http_update_host() to success.
htx_add_header(htx, ist("Host"), IST_NULL) was used but this is not a
good idea from a semantic point of view. It also tries to make a memcpy
with a len of 0, which is unrequired.

Use an ist("h") instead as a placeholder value.

This patch fixes bug #1439.
src/http_client.c