From: ticktock35 Date: Mon, 15 Dec 2008 05:27:43 +0000 (+0000) Subject: Patch from rwhitby to follow 302 redirects properly. X-Git-Url: http://git.openwrt.org/?p=project%2Fopkg-lede.git;a=commitdiff_plain;h=69b2e9b983b00a1815fc28c7853c42371a1545e5 Patch from rwhitby to follow 302 redirects properly. git-svn-id: http://opkg.googlecode.com/svn/trunk@149 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- 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) {