mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Change attribute of the download request to follow redirects. That makes the download feature of the Toolbox compatible with Qt 5.8.2.
This commit is contained in:
parent
24684d5d9c
commit
65a6c751cd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue