]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: http-fetch: Fix http_auth_bearer() when custom header is used
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 14:42:50 +0000 (16:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2026 16:36:04 +0000 (18:36 +0200)
commit9095785203b89f2a525eac25b20d137bbba63729
tree5fc2521e1b8741ee8527808c94539e41087dcf3f
parent9abfbbf0bafaf757488495025df0c5b9e965cae8
BUG/MINOR: http-fetch: Fix http_auth_bearer() when custom header is used

When http_auth_bearer() sample fetch function is called with a custom header
and the header is not found or type didn't match 'Bearer', a mismatch must
be reported instead of an empty string.

This patch should be backported as far as 2.6.
src/http_fetch.c