From 6b354475ce2527eec6349c235af798166ec2c0c5 Mon Sep 17 00:00:00 2001 From: Learath Lea Date: Tue, 20 Jan 2015 01:01:30 +0200 Subject: [PATCH] Follow 3xx Redirects --- src/engine/client/fetcher.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/client/fetcher.cpp b/src/engine/client/fetcher.cpp index 64a210dc9..c79a172bf 100644 --- a/src/engine/client/fetcher.cpp +++ b/src/engine/client/fetcher.cpp @@ -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);