- Allow all redirection on FileDownloader (can resolve bzip2 download and then, using h264 on Windows).

- Use https for downloading bzip2.
This commit is contained in:
Julien Wadel 2022-03-28 11:28:06 +02:00
parent bc9f9f5ec1
commit faff2f40c1
2 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -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";