Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix downloading plugins for custom repo
I am using github releases files which are apparently stored on amazon and give a 302 code.
I have been successfully tested this patch
  • Loading branch information
3nids authored and nyalldawson committed Jul 19, 2018
1 parent f6ff660 commit f060566
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 f060566

Please sign in to comment.