From ac6004166e16faf678772c0abacd46ef632e37fb Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 26 Mar 2018 17:40:56 -0300 Subject: [PATCH] Allow redirection in dlman --- src/DownloadManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DownloadManager.cpp b/src/DownloadManager.cpp index de20da4679..1bb488d58c 100644 --- a/src/DownloadManager.cpp +++ b/src/DownloadManager.cpp @@ -181,6 +181,7 @@ inline CURL* initCURLHandle() { curl_easy_setopt(curlHandle, CURLOPT_USERAGENT, "libcurl-agent/1.0"); curl_easy_setopt(curlHandle, CURLOPT_SSL_VERIFYPEER, 0L); curl_easy_setopt(curlHandle, CURLOPT_SSL_VERIFYHOST, 0L); + curl_easy_setopt(curlHandle, CURLOPT_FOLLOWLOCATION, 1L); return curlHandle; } inline bool addFileToForm(curl_httppost *&form, curl_httppost *&lastPtr, string field, string fileName, string filePath, RString &contents)