Follow 3xx Redirects

This commit is contained in:
Learath Lea 2015-01-20 01:01:30 +02:00
parent dcbd91cbc8
commit 6b354475ce

View file

@ -103,6 +103,8 @@ bool CFetcher::FetchFile(CFetchTask *pTask)
curl_easy_setopt(m_pHandle, CURLOPT_ERRORBUFFER, aErr);
curl_easy_setopt(m_pHandle, CURLOPT_VERBOSE, 1L);
curl_easy_setopt(m_pHandle, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(m_pHandle, CURLOPT_MAXREDIRS, 4L);
curl_easy_setopt(m_pHandle, CURLOPT_FAILONERROR, 1L);
curl_easy_setopt(m_pHandle, CURLOPT_CAINFO, "data/ca-ddnet.pem");
curl_easy_setopt(m_pHandle, CURLOPT_URL, pTask->m_pUrl);