提交 4a9fc2c7 authored 作者: Rupa Schomaker's avatar Rupa Schomaker

FSMOD-38 - support redirection


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16881 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 66da758d
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论