diff --git a/linphone-app/src/components/file/FileDownloader.cpp b/linphone-app/src/components/file/FileDownloader.cpp index 55fe1de9f..256a97999 100644 --- a/linphone-app/src/components/file/FileDownloader.cpp +++ b/linphone-app/src/components/file/FileDownloader.cpp @@ -78,6 +78,7 @@ void FileDownloader::download () { setDownloading(true); QNetworkRequest request(mUrl); + request.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true); mNetworkReply = mManager.get(request); QNetworkReply *data = mNetworkReply.data(); @@ -135,7 +136,6 @@ void FileDownloader::handleDownloadFinished() { if (mNetworkReply->error() != QNetworkReply::NoError) return; - // TODO: Deal with redirection. if (isHttpRedirect(mNetworkReply)) { qWarning() << QStringLiteral("Request was redirected."); mDestinationFile.remove(); diff --git a/linphone-app/src/utils/Constants.hpp b/linphone-app/src/utils/Constants.hpp index b0440fb88..3537dddbe 100644 --- a/linphone-app/src/utils/Constants.hpp +++ b/linphone-app/src/utils/Constants.hpp @@ -64,8 +64,8 @@ public: - static constexpr char LinphoneBZip2_exe[] = "http://www.linphone.org/releases/windows/tools/bzip2/bzip2.exe"; - static constexpr char LinphoneBZip2_dll[] = "http://www.linphone.org/releases/windows/tools/bzip2/bzip2.dll"; + static constexpr char LinphoneBZip2_exe[] = "https://www.linphone.org/releases/windows/tools/bzip2/bzip2.exe"; + static constexpr char LinphoneBZip2_dll[] = "https://www.linphone.org/releases/windows/tools/bzip2/bzip2.dll"; static constexpr char DefaultRlsUri[] = "sips:rls@sip.linphone.org"; static constexpr char DefaultLogsEmail[] = "linphone-desktop@belledonne-communications.com"; static constexpr char DefaultConferenceURI[] = "sip:conference-factory@sip.linphone.org";