From fcb1681de92a66da03b6ff1c9069b24e614f401d Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 25 Mar 2011 19:19:59 +0000 Subject: [PATCH] - now all libcurl calls support http redirection --- source/glest_game/menu/menu_state_mods.cpp | 3 +-- source/shared_lib/sources/util/util.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/menu/menu_state_mods.cpp b/source/glest_game/menu/menu_state_mods.cpp index e9c8abf1..8434b55c 100644 --- a/source/glest_game/menu/menu_state_mods.cpp +++ b/source/glest_game/menu/menu_state_mods.cpp @@ -494,8 +494,7 @@ void MenuStateMods::getMapsLocalList() { results2.clear(); copy(allMaps2.begin(), allMaps2.end(), std::back_inserter(results2)); mapFilesUserData = results2; - - printf("\n\nMap path [%s] mapFilesUserData.size() = %d\n\n\n",path.c_str(),mapFilesUserData.size()); + //printf("\n\nMap path [%s] mapFilesUserData.size() = %d\n\n\n",path.c_str(),mapFilesUserData.size()); } } diff --git a/source/shared_lib/sources/util/util.cpp b/source/shared_lib/sources/util/util.cpp index 1e546b22..e8d815b2 100644 --- a/source/shared_lib/sources/util/util.cpp +++ b/source/shared_lib/sources/util/util.cpp @@ -176,6 +176,7 @@ CURL *SystemFlags::initHTTP() { SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d] ERROR handle = NULL\n",__FILE__,__FUNCTION__,__LINE__); } curl_easy_setopt(handle, CURLOPT_NOSIGNAL, 1); + curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1); return handle; }