Curl_http_header: check for colon when matching Persistent-Auth

Closes #6993
This commit is contained in:
Harry Sintonen 2021-05-03 00:06:41 +03:00 committed by Daniel Stenberg
parent b75620b9a0
commit a60294cf43
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 1 deletions

View File

@ -3581,7 +3581,7 @@ CURLcode Curl_http_header(struct Curl_easy *data, struct connectdata *conn,
return result;
}
#ifdef USE_SPNEGO
else if(checkprefix("Persistent-Auth", headp)) {
else if(checkprefix("Persistent-Auth:", headp)) {
struct negotiatedata *negdata = &conn->negotiate;
struct auth *authp = &data->state.authhost;
if(authp->picked == CURLAUTH_NEGOTIATE) {