mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:43:38 +03:00
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
This commit is contained in:
parent
3a6058cb97
commit
8b9de77cd2
2 changed files with 3 additions and 1 deletions
|
|
@ -99,6 +99,8 @@ char *Curl_checkheaders(const struct Curl_easy *data,
|
|||
{
|
||||
struct curl_slist *head;
|
||||
size_t thislen = strlen(thisheader);
|
||||
DEBUGASSERT(thislen);
|
||||
DEBUGASSERT(thisheader[thislen-1] != ':');
|
||||
|
||||
for(head = data->set.headers; head; head = head->next) {
|
||||
if(strncasecompare(head->data, thisheader, thislen) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue