diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-05-01 23:38:15 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-02 12:08:20 +0200 |
commit | 8b9de77cd25a4c07bdeec8c7ef8a6c7911ac98f7 (patch) | |
tree | c0f63cc190780afbba97658fc8351e319d9607ed /lib/http.c | |
parent | 3a6058cb976981ec1db870f9657c73c9a1162822 (diff) | |
download | curl-8b9de77cd25a4c07bdeec8c7ef8a6c7911ac98f7.tar.gz |
http: fix the check for 'Authorization' with Bearer
The code would wrongly check for it using an additional colon.
Reported-by: Blake Burkhart
Closes #6988
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c index 3cb21760d..e59ee6c2d 100644 --- a/lib/http.c +++ b/lib/http.c @@ -740,7 +740,7 @@ output_auth_headers(struct Curl_easy *data, if(authstatus->picked == CURLAUTH_BEARER) { /* Bearer */ if((!proxy && data->set.str[STRING_BEARER] && - !Curl_checkheaders(data, "Authorization:"))) { + !Curl_checkheaders(data, "Authorization"))) { auth = "Bearer"; result = http_output_bearer(data); if(result) |