summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-04-25 00:46:51 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-05-19 03:43:28 +0200
commitc7f0ff340305d83d80498f4b8f7d39183cf1c441 (patch)
tree1d11cf74941a410014fd1a6bfa7e81d51be32c8a
parent191163592fe7c1af9319c1d226c4b766f0a32e7b (diff)
follow redirects when downloading update files
Change-Id: Ic6679aa3d150499b354ccb396c136178d662bb67
-rw-r--r--desktop/source/app/updater.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/source/app/updater.cxx b/desktop/source/app/updater.cxx
index 5b4b5c1ebac3..83d2a3010bf6 100644
--- a/desktop/source/app/updater.cxx
+++ b/desktop/source/app/updater.cxx
@@ -402,6 +402,7 @@ std::string download_content(const OString& rURL, bool bFile)
curl_slist* headerlist = nullptr;
headerlist = curl_slist_append(headerlist, buf);
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
+ curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); // follow redirects
std::string response_body;
utl::TempFile aTempFile;