summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Sintonen <sintonen@iki.fi>2021-05-03 00:06:41 +0300
committerDaniel Stenberg <daniel@haxx.se>2021-05-03 16:35:22 +0200
commita60294cf4319e8dd0cbb9b3bba178451d4de37d2 (patch)
treee52d2d2b9d6dff8bdc8d168a177ccba121dbad28
parentb75620b9a05c0f0d03bd86e136ea5c8b8f1fecf2 (diff)
downloadcurl-a60294cf4319e8dd0cbb9b3bba178451d4de37d2.tar.gz
Curl_http_header: check for colon when matching Persistent-Auth
Closes #6993
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index 1f5ca37b2..b42d37efa 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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) {