mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08: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
@ -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…
x
Reference in New Issue
Block a user