diff options
author | ticktock35 <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) |
commit | 69b2e9b983b00a1815fc28c7853c42371a1545e5 (patch) | |
tree | da13c27604e4ee409bb71fbea206c14c350a6eae | |
parent | 6f23ce839b13d2fb12e5347b20e0ab78e7441845 (diff) |
Patch from rwhitby to follow 302 redirects properly.
git-svn-id: http://opkg.googlecode.com/svn/trunk@149 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r-- | libopkg/opkg_download.c | 1 |
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) { |