mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 19:38:09 +00:00
- 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:
parent
bc9f9f5ec1
commit
faff2f40c1
2 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue