Changeset 747

Show
Ignore:
Timestamp:
01/19/07 00:22:24 (2 years ago)
Author:
oxff
Message:

nepenthes.download-curl: adopted to new API, thanks to Philip Olsson for providing this patch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/modules/download-curl/download-curl.cpp

    r550 r747  
    231231                                 down->getDownloadUrl()->getPath().c_str()); 
    232232//        string auth = down->getDownloadUrl()->getUser() + ":" + down->getDownloadUrl()->getPass(); 
     233#if LIBCURL_VERSION_NUM < 0x071000 
    233234                curl_easy_setopt(pCurlHandle, CURLOPT_SOURCE_USERPWD,(char *)down->getDownloadUrl()->getAuth().c_str()); 
     235+#endif 
    234236                curl_easy_setopt(pCurlHandle, CURLOPT_USERPWD,(char *)down->getDownloadUrl()->getAuth().c_str()); 
    235237                curl_easy_setopt(pCurlHandle, CURLOPT_URL                       , url);