Merge pull request #137 from JanST123/old_curl

also compile with cURL Version less than 7.32.0
pull/59/merge
Vitaliy Filippov 2017-03-19 13:07:54 +04:00 committed by GitHub
commit e8a8801c75
1 changed files with 4 additions and 2 deletions

View File

@ -190,8 +190,10 @@ long CurlAgent::ExecCurl(
struct curl_slist *slist = SetHeader( m_pimpl->curl, hdr ) ;
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, progress_callback);
curl_easy_setopt(curl, CURLOPT_XFERINFODATA, this);
#if LIBCURL_VERSION_NUM >= 0x072000
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, progress_callback);
curl_easy_setopt(curl, CURLOPT_XFERINFODATA, this);
#endif
CURLcode curl_code = ::curl_easy_perform(curl);