From b2ec2b1bd913f29462e91bfc888f386200a33ab6 Mon Sep 17 00:00:00 2001 From: Hihoffff Date: Fri, 6 Jun 2025 12:05:42 +0300 Subject: [PATCH] code:final --- main.cpp | 1 + 1 file changed, 1 insertion(+) 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){