Ported changes from 0.3.1 and bumped version to 0.3.2-SVN
[supertux.git] / src / addon_manager.cpp
index 79e3537..ae76953 100644 (file)
@@ -152,7 +152,7 @@ AddonManager::get_available_addons() const
 
   char error_buffer[CURL_ERROR_SIZE+1];
 
-  const char* baseUrl = "http://supertux.lethargik.org/addons/index.nfo";
+  const char* baseUrl = "http://supertux.berlios.de/addons/index.nfo";
   std::string addoninfos = "";
 
   CURL *curl_handle;
@@ -165,6 +165,7 @@ AddonManager::get_available_addons() const
   curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1);
   curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
   curl_easy_setopt(curl_handle, CURLOPT_FAILONERROR, 1);
+  curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1);
   CURLcode result = curl_easy_perform(curl_handle);
   curl_easy_cleanup(curl_handle);