X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Faddon_manager.cpp;h=b59dde0940d1f185a81d5dcd964f838f2c0602b1;hb=904852246d59d4988c3e85290dd4601713e42db5;hp=79e353741f8774dc20edaa732b08479abcfb7416;hpb=c76625a8f9ca44b1a2b2b45acece01a858759861;p=supertux.git diff --git a/src/addon_manager.cpp b/src/addon_manager.cpp index 79e353741..b59dde094 100644 --- a/src/addon_manager.cpp +++ b/src/addon_manager.cpp @@ -21,6 +21,7 @@ #include #include +#include #include #include #include @@ -152,7 +153,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 +166,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);