Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handle redirection for plugin installer
  • Loading branch information
3nids committed Jul 20, 2018
1 parent 7886c91 commit b5e2284
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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:
Expand Down

0 comments on commit b5e2284

Please sign in to comment.