r4640 - trunk/src/target/opkg/libopkg

graeme at docs.openmoko.org graeme at docs.openmoko.org
Wed Sep 10 09:43:42 CEST 2008


Author: graeme
Date: 2008-09-10 09:43:41 +0200 (Wed, 10 Sep 2008)
New Revision: 4640

Modified:
   trunk/src/target/opkg/libopkg/opkg_download.c
Log:
Patch from rwhitby to follow 302 redirects properly.



Modified: trunk/src/target/opkg/libopkg/opkg_download.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg_download.c	2008-09-10 00:27:07 UTC (rev 4639)
+++ trunk/src/target/opkg/libopkg/opkg_download.c	2008-09-10 07:43:41 UTC (rev 4640)
@@ -91,6 +91,7 @@
 		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)
 	{




More information about the commitlog mailing list