X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcurl_xml.c;h=850a4aa582c756dd0c2310bb8bb3bd32c62488e7;hb=c6037f42499724bd02d2a91b30b2f769a8fb5b87;hp=6d36d29dd2172178757d81ec37efcfa23c882577;hpb=600b824cba6c6252f753b5b6478cd45a676b410f;p=collectd.git diff --git a/src/curl_xml.c b/src/curl_xml.c index 6d36d29d..850a4aa5 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -861,13 +861,9 @@ static int cx_init_curl (cx_t *db) /* {{{ */ ssnprintf (db->credentials, credentials_size, "%s:%s", db->user, (db->pass == NULL) ? "" : db->pass); curl_easy_setopt (db->curl, CURLOPT_USERPWD, db->credentials); - + if (db->digest) - { curl_easy_setopt (db->curl, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); - curl_easy_setopt (db->curl, CURLOPT_USERNAME, db->user); - curl_easy_setopt (db->curl, CURLOPT_PASSWORD, db->pass); - } } curl_easy_setopt (db->curl, CURLOPT_SSL_VERIFYPEER, db->verify_peer ? 1L : 0L);