We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 958934e + 4a9fee6 commit 43135c4Copy full SHA for 43135c4
Orange/canvas/help/provider.py
@@ -61,6 +61,15 @@ def _fetch_inventory(self, url):
61
manager.setCache(cache)
62
req = QNetworkRequest(url)
63
64
+ # Follow redirects (for example http -> https)
65
+ # If redirects were not followed, the documentation would not be found
66
+ try:
67
+ req.setAttribute(QNetworkRequest.FollowRedirectsAttribute, 1) # from Qt 5.6
68
+ req.setAttribute(QNetworkRequest.RedirectPolicyAttribute, # from Qt 5.9
69
+ QNetworkRequest.NoLessSafeRedirectPolicy)
70
+ except AttributeError: # if ran with earlier Qt
71
+ pass
72
+
73
self._reply = manager.get(req)
74
manager.finished.connect(self._on_finished)
75
else:
0 commit comments