summaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-05-01 23:38:15 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-05-02 12:08:20 +0200
commit8b9de77cd25a4c07bdeec8c7ef8a6c7911ac98f7 (patch)
treec0f63cc190780afbba97658fc8351e319d9607ed /lib/http.c
parent3a6058cb976981ec1db870f9657c73c9a1162822 (diff)
downloadcurl-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.c2
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)