summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_download.c
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:27:43 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:27:43 (EST)
commit69b2e9b983b00a1815fc28c7853c42371a1545e5 (patch)
treeda13c27604e4ee409bb71fbea206c14c350a6eae /libopkg/opkg_download.c
parent6f23ce839b13d2fb12e5347b20e0ab78e7441845 (diff)
Patch from rwhitby to follow 302 redirects properly.
git-svn-id: http://opkg.googlecode.com/svn/trunk@149 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg_download.c')
-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)
{