BUG/MINOR: http: Authorization value can have multiple spaces after the scheme
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 29 Oct 2021 13:25:18 +0000 (15:25 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Nov 2021 15:21:31 +0000 (16:21 +0100)
commite9edb5fc025b0f138f16baca5a8a07aa92712065
tree448df23e23751020a90b0fb39646f84409e50fb9
parentc73b4f450a792ce5aae7ee42d70530472544462c
BUG/MINOR: http: Authorization value can have multiple spaces after the scheme

As per RFC7235, there can be multiple spaces in the value of an
Authorization header, between the scheme and the actual authentication
parameters.

This can be backported to all stable versions since basic auth has almost
always been there.

(cherry picked from commit 68c4eae87f2366a9485f5d09250d7ec82d9a1b94)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 2ad2ed46262a19b6012fe0ceb0243fe04aff9b71)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/http_fetch.c