Этот коммит содержится в:
2025-06-06 12:05:42 +03:00
родитель 6ebc5ea258
Коммит b2ec2b1bd9

Просмотреть файл

@@ -40,6 +40,7 @@ download(const string& address) {
if(curl) { if(curl) {
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, address); curl_easy_setopt(curl, CURLOPT_URL, address);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, input_data);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer);
res = curl_easy_perform(curl); res = curl_easy_perform(curl);
if(res!=0){ if(res!=0){