Skip to content
Permalink
Browse files

Handle redirection for plugin installer

  • Loading branch information
3nids committed Jul 20, 2018
1 parent 7886c91 commit b5e22846fb0a9c4fb247fdbb1fef5284ab98dee4
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/pyplugin_installer/qgsplugininstallerinstallingdialog.py
@@ -119,7 +119,7 @@ def requestFinished(self):
self.reject()
reply.deleteLater()
return
elif reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 301:
elif reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) in (301, 302):
redirectionUrl = reply.attribute(QNetworkRequest.RedirectionTargetAttribute)
self.redirectionCounter += 1
if self.redirectionCounter > 4:

0 comments on commit b5e2284

Please sign in to comment.
You can’t perform that action at this time.