mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-16 14:25:21 -05:00
lib/dload.c: don't request compressed transport
The files we transfer are generally compressed already, so this just adds unnecessary overhead. Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
82fb7a0202
commit
e29301954c
@ -171,7 +171,6 @@ static int curl_download_internal(const char *url, const char *localpath,
|
|||||||
curl_easy_reset(handle->curl);
|
curl_easy_reset(handle->curl);
|
||||||
curl_easy_setopt(handle->curl, CURLOPT_URL, url);
|
curl_easy_setopt(handle->curl, CURLOPT_URL, url);
|
||||||
curl_easy_setopt(handle->curl, CURLOPT_FAILONERROR, 1L);
|
curl_easy_setopt(handle->curl, CURLOPT_FAILONERROR, 1L);
|
||||||
curl_easy_setopt(handle->curl, CURLOPT_ENCODING, "deflate, gzip");
|
|
||||||
curl_easy_setopt(handle->curl, CURLOPT_CONNECTTIMEOUT, 10L);
|
curl_easy_setopt(handle->curl, CURLOPT_CONNECTTIMEOUT, 10L);
|
||||||
curl_easy_setopt(handle->curl, CURLOPT_FILETIME, 1L);
|
curl_easy_setopt(handle->curl, CURLOPT_FILETIME, 1L);
|
||||||
curl_easy_setopt(handle->curl, CURLOPT_NOPROGRESS, 0L);
|
curl_easy_setopt(handle->curl, CURLOPT_NOPROGRESS, 0L);
|
||||||
|
Loading…
Reference in New Issue
Block a user