summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libopkg/opkg_download.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index a8f03e2..1875195 100644
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -91,6 +91,7 @@ int opkg_download(opkg_conf_t *conf, const char *src, const char *dest_file_name
curl_easy_setopt (curl, CURLOPT_PROGRESSDATA, data);
curl_easy_setopt (curl, CURLOPT_PROGRESSFUNCTION, cb);
}
+ curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt (curl, CURLOPT_FAILONERROR, 1);
if (conf->http_proxy || conf->ftp_proxy)
{