mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-08 12:28:00 -05:00
lib/dload.c: don't use deprecated curl symbols
CURLINFO_HTTP_CODE is deprecated in favor of CURLINFO_RESPONSE_CODE. Both yield the same values. Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
e29301954c
commit
47e41b2023
@ -231,7 +231,7 @@ static int curl_download_internal(const char *url, const char *localpath,
|
||||
handle->curlerr = curl_easy_perform(handle->curl);
|
||||
|
||||
/* retrieve info about the state of the transfer */
|
||||
curl_easy_getinfo(handle->curl, CURLINFO_HTTP_CODE, &httpresp);
|
||||
curl_easy_getinfo(handle->curl, CURLINFO_RESPONSE_CODE, &httpresp);
|
||||
curl_easy_getinfo(handle->curl, CURLINFO_FILETIME, &remote_time);
|
||||
curl_easy_getinfo(handle->curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &remote_size);
|
||||
curl_easy_getinfo(handle->curl, CURLINFO_SIZE_DOWNLOAD, &bytes_dl);
|
||||
|
Loading…
Reference in New Issue
Block a user