From 32afc8e0169f807aa20b24d4ec305b84517fcb70 Mon Sep 17 00:00:00 2001 From: Yousef Khadadeh Date: Thu, 9 Jul 2026 17:23:04 +0300 Subject: [PATCH] Change made to compile on Ubuntu 24.04 --- include/Helpers/FileDownloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Helpers/FileDownloader.cpp b/include/Helpers/FileDownloader.cpp index b898ef7..1fe9a4e 100644 --- a/include/Helpers/FileDownloader.cpp +++ b/include/Helpers/FileDownloader.cpp @@ -46,7 +46,7 @@ std::shared_ptr FileDownloader::download_data_from curl_easy_setopt(h.eHandle, CURLOPT_URL, url.data()); 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_NOPROGRESS, 0); curl_easy_setopt(h.eHandle, CURLOPT_XFERINFODATA, h.data.get());