commit 4bab055d909430e34308bb5ebb5d716a7140d247
parent 8c30eb22b54aab2e95210a90d4abb45704d5b068
Author: cfillion <cfillion@users.noreply.github.com>
Date: Tue, 26 Jan 2016 22:50:34 -0500
increase the maximum number of redirections to follow from 1 to 5
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/download.cpp b/src/download.cpp
@@ -102,7 +102,7 @@ DWORD WINAPI Download::Worker(void *ptr)
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, DOWNLOAD_TIMEOUT);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true);
- curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 1);
+ curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 5);
curl_easy_setopt(curl, CURLOPT_HEADER, true);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &contents);