diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-25 00:46:51 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-05-19 02:48:42 +0200 |
commit | e93649d344c5bbd470e9726c72a09c50e635fefd (patch) | |
tree | ea3ada7b003602f182c9a811a6e59cda83c12bd0 | |
parent | 11528d0e618bae24c8f0cbe1cc8e83452d29c9f6 (diff) |
follow redirects when downloading update files
Change-Id: Ic6679aa3d150499b354ccb396c136178d662bb67
-rw-r--r-- | desktop/source/app/updater.cxx | 1 |
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; |