]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Curl_http_header: check for colon when matching Persistent-Auth
authorHarry Sintonen <sintonen@iki.fi>
Sun, 2 May 2021 21:06:41 +0000 (00:06 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 May 2021 14:35:22 +0000 (16:35 +0200)
Closes #6993

lib/http.c

index 1f5ca37b2d46ee013deefc960954cb21843b7f62..b42d37efa5386f5231d29f45dcafac144de49de1 100644 (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) {