From 4d29abe43e6ed490747a5b9c96de678117b68064 Mon Sep 17 00:00:00 2001 From: Steveice10 Date: Tue, 1 Jan 2019 11:37:15 -0800 Subject: [PATCH] Set CURLOPT_MAXREDIRS to 50. --- source/core/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/http.c b/source/core/http.c index 0485047..4fc78cc 100644 --- a/source/core/http.c +++ b/source/core/http.c @@ -368,6 +368,7 @@ Result http_download_callback(const char* url, u32 bufferSize, void* userData, R curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, bufferSize); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, HTTP_TIMEOUT_SEC); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); + curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 50); curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0); curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS);