diff options
author | Ghostkeeper <rubend@tutanota.com> | 2022-04-11 12:49:17 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2022-04-11 14:23:03 +0300 |
commit | 70fdffb1c99008859018cc652ae163b3787ef1b2 (patch) | |
tree | bf6c545eef772b7cbdc82af5f5897107741c3da7 /plugins | |
parent | 5bec905cb931cccd4603aa69eb038407c8089dfd (diff) |
Allow redirects when talking with printer API
Because newer firmware will redirect this API call.
Contributes to issue CURA-9119.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/UM3NetworkPrinting/src/Network/ClusterApiClient.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/UM3NetworkPrinting/src/Network/ClusterApiClient.py b/plugins/UM3NetworkPrinting/src/Network/ClusterApiClient.py index 773e2b5902..e0b156dc08 100644 --- a/plugins/UM3NetworkPrinting/src/Network/ClusterApiClient.py +++ b/plugins/UM3NetworkPrinting/src/Network/ClusterApiClient.py @@ -118,7 +118,6 @@ class ClusterApiClient: """ url = QUrl("http://" + self._address + path) request = QNetworkRequest(url) - request.setAttribute(QNetworkRequest.Attribute.RedirectPolicyAttribute, QNetworkRequest.RedirectPolicy.ManualRedirectPolicy) if content_type: request.setHeader(QNetworkRequest.KnownHeaders.ContentTypeHeader, content_type) return request |