]> git.kaiwu.me - haproxy.git/commit
MEDIUM: httpclient: set res.status to 0 upon SF_ERR_MASK
authorWilliam Lallemand <wlallemand@irq6.net>
Sun, 14 Jun 2026 08:46:38 +0000 (10:46 +0200)
committerWilliam Lallemand <wlallemand@irq6.net>
Sun, 14 Jun 2026 08:46:38 +0000 (10:46 +0200)
commitf371bfd608b39d2e3c25ca941dd621a4ee3166f1
tree1423a3169b7a2221a15997cbe5bb2438861631cd
parent0748799ad18db4eeb72b33b30c5e0c420a8216ea
MEDIUM: httpclient: set res.status to 0 upon SF_ERR_MASK

With the httpclient it's difficult to get if the HTTP status code was
returned by the actual server or if it's the internal proxy that
generate the error.

This patch changes the behavior by setting the status to 0 when an error
is get by the stream.

There were already valid cases when the status was 0 on some error, so
that should not really change the error path in the scripts.
src/http_client.c