Change made to compile on Ubuntu 24.04

This commit is contained in:
Yousef Khadadeh 2026-07-09 17:23:04 +03:00
parent 47f885ec9a
commit 32afc8e016

View file

@ -46,7 +46,7 @@ std::shared_ptr<FileDownloader::DownloadData> FileDownloader::download_data_from
curl_easy_setopt(h.eHandle, CURLOPT_URL, url.data()); curl_easy_setopt(h.eHandle, CURLOPT_URL, url.data());
curl_easy_setopt(h.eHandle, CURLOPT_NOSIGNAL, 1); curl_easy_setopt(h.eHandle, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(h.eHandle, CURLOPT_FOLLOWLOCATION, CURLFOLLOW_ALL); curl_easy_setopt(h.eHandle, CURLOPT_FOLLOWLOCATION, 1L); // 1L == CURLFOLLOW_ALL (for compatibility with older libcurl versions, use 1L)
curl_easy_setopt(h.eHandle, CURLOPT_USERAGENT, "InfiniPaint/0.2.0"); curl_easy_setopt(h.eHandle, CURLOPT_USERAGENT, "InfiniPaint/0.2.0");
curl_easy_setopt(h.eHandle, CURLOPT_NOPROGRESS, 0); curl_easy_setopt(h.eHandle, CURLOPT_NOPROGRESS, 0);
curl_easy_setopt(h.eHandle, CURLOPT_XFERINFODATA, h.data.get()); curl_easy_setopt(h.eHandle, CURLOPT_XFERINFODATA, h.data.get());