summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-10-09 16:15:09 +0300
committerAndrei Karas <akaras@inbox.ru>2016-10-09 16:15:09 +0300
commitae529d58059eaeded1d5e85bce2565b6e4d6938d (patch)
tree3cb9fcbf259358ca1fbf9332310e438158451f14 /src/gui/windows
parent961d1a4bca34068e9ecb5deff0b9da0d6ed6ac16 (diff)
downloadplus-ae529d58059eaeded1d5e85bce2565b6e4d6938d.tar.gz
plus-ae529d58059eaeded1d5e85bce2565b6e4d6938d.tar.bz2
plus-ae529d58059eaeded1d5e85bce2565b6e4d6938d.tar.xz
plus-ae529d58059eaeded1d5e85bce2565b6e4d6938d.zip
Add support for redirects in online list (legacy server).
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/whoisonline.cpp1
1 files changed, 1 insertions, 0 deletions
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);