Patch from rwhitby to follow 302 redirects properly.
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:27:43 +0000 (05:27 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:27:43 +0000 (05:27 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@149 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_download.c

index a8f03e27f1b11244de336d4c01da849867cd8379..1875195c12118aba4e2578ec8253d0efa609aad3 100644 (file)
@@ -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)
        {