From 1eaf40f0ca5b63f94e888fd91bd2a14ec2eac09e Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 5 Mar 2009 13:14:21 +0000 Subject: [PATCH] (trunk gtk) allow redirects in the blocklist downloader (launchpad bug #338202) --- gtk/blocklist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/blocklist.c b/gtk/blocklist.c index 0984b8bfe..c17ea3591 100644 --- a/gtk/blocklist.c +++ b/gtk/blocklist.c @@ -109,8 +109,8 @@ blocklistThreadFunc( gpointer gcore ) CURL * curl = curl_easy_init( ); curl_easy_setopt( curl, CURLOPT_URL, url ); curl_easy_setopt( curl, CURLOPT_ENCODING, "deflate" ); - curl_easy_setopt( curl, CURLOPT_USERAGENT, "Transmission/" - LONG_VERSION_STRING ); + curl_easy_setopt( curl, CURLOPT_FOLLOWLOCATION, 1L ); + curl_easy_setopt( curl, CURLOPT_USERAGENT, "Transmission/" LONG_VERSION_STRING ); curl_easy_setopt( curl, CURLOPT_VERBOSE, verbose ); curl_easy_setopt( curl, CURLOPT_WRITEFUNCTION, writeFunc ); curl_easy_setopt( curl, CURLOPT_WRITEDATA, &fd );