From: Rupa Schomaker Date: Wed, 3 Mar 2010 17:43:28 +0000 (+0000) Subject: FSMOD-38 - support redirection X-Git-Tag: v1.0.6~259 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a9fc2c7316374331923b3fdec1bbff584cdee33;p=thirdparty%2Ffreeswitch.git FSMOD-38 - support redirection git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16881 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_curl/mod_curl.c b/src/mod/applications/mod_curl/mod_curl.c index 2991350526..79fed505cc 100755 --- a/src/mod/applications/mod_curl/mod_curl.c +++ b/src/mod/applications/mod_curl/mod_curl.c @@ -137,8 +137,8 @@ static http_data_t *do_lookup_url(switch_memory_pool_t *pool, const char *url, c } else { curl_easy_setopt(curl_handle, CURLOPT_HTTPGET, 1); } - curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 0); - curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 0); + curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1); + curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 15); curl_easy_setopt(curl_handle, CURLOPT_URL, url); curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1); curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, file_callback);