Skip to content
Permalink
Browse files

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 f06056628789824ed024b6a4a36f3ee120c093a2
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 f060566

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