diff --git a/main.cpp b/main.cpp index 0b66433..add2c03 100644 --- a/main.cpp +++ b/main.cpp @@ -40,6 +40,7 @@ download(const string& address) { if(curl) { CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, address); + curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, input_data); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer); res = curl_easy_perform(curl); if(res!=0){