From ae529d58059eaeded1d5e85bce2565b6e4d6938d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Oct 2016 16:15:09 +0300 Subject: Add support for redirects in online list (legacy server). --- src/gui/windows/whoisonline.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index d07cb9f7d..d970cf8b9 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -536,6 +536,7 @@ int WhoIsOnline::downloadThread(void *ptr) break; } wio->mDownloadedBytes = 0; + curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &WhoIsOnline::memoryWrite); -- cgit v1.2.3-70-g09d2