* Fixed a compiler warning.

* Tell libcurl to follow redirects.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@521 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-08-10 12:20:17 +00:00
parent 6590f5608f
commit 202ed7928b
+4 -1
View File
@@ -77,7 +77,10 @@ CurlGet::start() {
curl_easy_setopt(m_handle, CURLOPT_USERAGENT, m_userAgent.c_str());
curl_easy_setopt(m_handle, CURLOPT_WRITEFUNCTION, &curl_get_receive_write);
curl_easy_setopt(m_handle, CURLOPT_WRITEDATA, this);
curl_easy_setopt(m_handle, CURLOPT_FORBID_REUSE, 1);
curl_easy_setopt(m_handle, CURLOPT_FORBID_REUSE, 1);
curl_easy_setopt(m_handle, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(m_handle, CURLOPT_MAXREDIRS, 5);
m_stack->add_get(this);
}