BUG/MINOR: httpclient: fix Host header
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 24 Aug 2021 15:53:03 +0000 (17:53 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 24 Aug 2021 15:53:03 +0000 (17:53 +0200)
commit4463b17fe354fda18b194bdad862df52af29fb79
treea52390476e291dcc85bedc4fa2031e06899f05b1
parent211c9679c8c10f6a09f95c2aa613225887607850
BUG/MINOR: httpclient: fix Host header

THe http_update_update_host function takes an URL and extract the domain
to use as a host header. However it only update an existing host header
and does not create one.

This patch add an empty host header so the function can update it.
src/http_client.c