Fix file-archive, curl API

This commit is contained in:
Robin Gareus 2022-09-08 15:46:06 +02:00
parent 288c58c5de
commit 57430f33c2
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -194,7 +194,7 @@ FileArchive::fetch (const std::string & url, const std::string & destdir) const
return std::string ();
}
curl_easy_setopt (curl, CURLOPT_URL, url);
curl_easy_setopt (curl, CURLOPT_URL, url.c_str ());
curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L);
CURLcode res = curl_easy_perform (curl);
curl_easy_cleanup (curl);