From 69b2e9b983b00a1815fc28c7853c42371a1545e5 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:27:43 -0500 Subject: Patch from rwhitby to follow 302 redirects properly. git-svn-id: http://opkg.googlecode.com/svn/trunk@149 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg') 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) { -- cgit v0.9.1