]> granicus.if.org Git - curl/commitdiff
ah, this change broke multiple test cases
authorDaniel Stenberg <daniel@haxx.se>
Thu, 4 Sep 2003 13:07:09 +0000 (13:07 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 4 Sep 2003 13:07:09 +0000 (13:07 +0000)
lib/http.c

index 69423839730f065d787b032eb9ddc98b01a16809..aa037e99acf083e2bb6ed44db4079b315709b167 100644 (file)
@@ -162,8 +162,6 @@ void Curl_http_auth_act(struct connectdata *conn)
 {
   struct SessionHandle *data = conn->data;
 
-  data->state.authwant = CURLAUTH_NONE; /* clear it first */
-
   if(data->state.authavail) {
     if(data->state.authavail & CURLAUTH_GSSNEGOTIATE)
       data->state.authwant = CURLAUTH_GSSNEGOTIATE;
@@ -173,6 +171,8 @@ void Curl_http_auth_act(struct connectdata *conn)
       data->state.authwant = CURLAUTH_NTLM;
     else if(data->state.authavail & CURLAUTH_BASIC)
       data->state.authwant = CURLAUTH_BASIC;
+    else
+      data->state.authwant = CURLAUTH_NONE; /* clear it */
 
     if(data->state.authwant)
       conn->newurl = strdup(data->change.url); /* clone URL */