Skip to content
Snippets Groups Projects
Commit 7037ee9a authored by Vivek Dutta's avatar Vivek Dutta
Browse files

Update curl_easy_getinfo to build with CURL > 7.55.0

Replace CURLINFO_CONTENT_LENGTH_DOWNLOAD with CURLINFO_CONTENT_LENGTH_DOWNLOAD_T.

On-behalf-of: Piotr Kubik <piotr.kubik@iopsys.eu>
parent 351a8e8e
Branches
No related tags found
1 merge request!76Update curl_easy_getinfo to build with CURL > 7.55.0
Pipeline #94048 passed with warnings
......@@ -976,7 +976,7 @@ unsigned long get_remote_file_size(const char *url, const char *uname, const cha
if (CURLE_OK == res) {
double filesize = 0;
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD,
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T,
&filesize);
if ((res == CURLE_OK) && (filesize > 0)) {
file_size_kb = (unsigned long)filesize/1024;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment