From 65a6c751cde73b058c126478bc3b0e048a08f1cd Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Thu, 3 May 2018 09:29:04 +0200 Subject: [PATCH] Change attribute of the download request to follow redirects. That makes the download feature of the Toolbox compatible with Qt 5.8.2. --- plugins/Toolbox/src/Toolbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Toolbox/src/Toolbox.py b/plugins/Toolbox/src/Toolbox.py index ea5a535196..2ffc48c8b6 100644 --- a/plugins/Toolbox/src/Toolbox.py +++ b/plugins/Toolbox/src/Toolbox.py @@ -300,7 +300,7 @@ class Toolbox(QObject, Extension): Logger.log("i", "Toolbox: Attempting to download & install package from %s.", url) url = QUrl(url) self._download_request = QNetworkRequest(url) - self._download_request.setAttribute(QNetworkRequest.RedirectPolicyAttribute, QNetworkRequest.NoLessSafeRedirectPolicy) + self._download_request.setAttribute(QNetworkRequest.FollowRedirectsAttribute, True) self._download_request.setRawHeader(*self._request_header) self._download_reply = self._network_manager.get(self._download_request) self.setDownloadProgress(0)