BUG/MINOR: httpclient: wrongly named httpproxy flag
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 24 Jan 2025 16:53:04 +0000 (17:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Oct 2025 13:40:24 +0000 (15:40 +0200)
commit129d550679d544d6450896a35e11c8dfdc984d8e
tree0e63c4cc3faf4fc1bd989df707903cdbfb428bad
parent1460924e72baca3079cd634d650aa0c5489bad84
BUG/MINOR: httpclient: wrongly named httpproxy flag

The HC_F_HTTPPROXY flag was wrongly named and does not use the correct
value, indeed this flag was meant to be used for the httpclient API, not
the httpclient CLI.

This patch fixes the problem by introducing HTTPCLIENT_FO_HTTPPROXY
which has must be set in hc->flags.

Also add a member 'options' in the httpclient structure, because the
member flags is reinitialized when starting.

Must be backported as far as 3.0.

(cherry picked from commit 519abefb57da1ae21fc557213cae8b21cdaa2797)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 008045a03eeca63712546e030a4549671d00ffc1)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit cba2b004accf766a3c6e6aac35852e27cd74cf07)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/http_client-t.h
src/http_client.c
src/ssl_ocsp.c