diff options
author | Alexander Tkachev | 2016-05-26 23:56:29 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 24007c029b53a5f4502ee1c48c5244b8cf8099ce (patch) | |
tree | 035c0a015e3ebc62e80faa2371ca46ee3345f844 /backends/networking/curl | |
parent | 8f6bcdf55da97db98384c2a8cb9dcdf34232ac35 (diff) | |
download | scummvm-rg350-24007c029b53a5f4502ee1c48c5244b8cf8099ce.tar.gz scummvm-rg350-24007c029b53a5f4502ee1c48c5244b8cf8099ce.tar.bz2 scummvm-rg350-24007c029b53a5f4502ee1c48c5244b8cf8099ce.zip |
CLOUD: Add OneDriveStorage::download()
Doesn't work when token is invalid, though.
Diffstat (limited to 'backends/networking/curl')
-rw-r--r-- | backends/networking/curl/connectionmanager.cpp | 2 | ||||
-rw-r--r-- | backends/networking/curl/networkreadstream.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/backends/networking/curl/connectionmanager.cpp b/backends/networking/curl/connectionmanager.cpp index 77a46ec518..9d88c59b25 100644 --- a/backends/networking/curl/connectionmanager.cpp +++ b/backends/networking/curl/connectionmanager.cpp @@ -34,7 +34,7 @@ DECLARE_SINGLETON(Networking::ConnectionManager); namespace Networking { -ConnectionManager::ConnectionManager(): _multi(0), _timerStarted(false) { +ConnectionManager::ConnectionManager(): _multi(0), _timerStarted(false), _nextId(0) { curl_global_init(CURL_GLOBAL_ALL); _multi = curl_multi_init(); } diff --git a/backends/networking/curl/networkreadstream.cpp b/backends/networking/curl/networkreadstream.cpp index 9a196b92d2..39316deb7c 100644 --- a/backends/networking/curl/networkreadstream.cpp +++ b/backends/networking/curl/networkreadstream.cpp @@ -45,6 +45,7 @@ NetworkReadStream::NetworkReadStream(const char *url, curl_slist *headersList, C curl_easy_setopt(_easy, CURLOPT_HEADER, 0L); curl_easy_setopt(_easy, CURLOPT_URL, url); curl_easy_setopt(_easy, CURLOPT_VERBOSE, 0L); + curl_easy_setopt(_easy, CURLOPT_FOLLOWLOCATION, 1L); //probably it's OK to have it always on curl_easy_setopt(_easy, CURLOPT_HTTPHEADER, headersList); if (postFields.size() != 0) { curl_easy_setopt(_easy, CURLOPT_POSTFIELDSIZE, postFields.size()); |