mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Follow 3xx Redirects
This commit is contained in:
parent
dcbd91cbc8
commit
6b354475ce
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue