Use Curl AnyAuth (digest+basic) instead of just digest
authorPaul Sadauskas <psadauskas@gmail.com>
Sun, 17 Jan 2010 19:54:06 +0000 (12:54 -0700)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 20 Jan 2010 09:37:19 +0000 (10:37 +0100)
src/write_http.c

index f14636b..1a49039 100644 (file)
@@ -142,7 +142,7 @@ static int wh_callback_init (wh_callback_t *cb) /* {{{ */
                 ssnprintf (cb->credentials, credentials_size, "%s:%s",
                                 cb->user, (cb->pass == NULL) ? "" : cb->pass);
                 curl_easy_setopt (cb->curl, CURLOPT_USERPWD, cb->credentials);
-                curl_easy_setopt (cb->curl, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
+                curl_easy_setopt (cb->curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
         }
 
         curl_easy_setopt (cb->curl, CURLOPT_SSL_VERIFYPEER, cb->verify_peer);