fix: patch Helpers::httpGet CURLE_URL_MALFORMAT

This commit is contained in:
rjindael 2023-09-08 17:23:18 -07:00
parent 21a54ba747
commit cd7b7adaa2
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ std::pair<bool, std::string> Helpers::httpGet(const std::string url)
return std::make_pair(false, "");
}
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, Helpers::write);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &data);