Delete file on infinite redirects

This commit is contained in:
Florian Bruhin 2016-09-10 00:11:37 +02:00
parent dc0ddd023a
commit 3bf841bdb4

View File

@ -739,6 +739,7 @@ class DownloadItem(QObject):
if self._redirects > self.MAX_REDIRECTS:
self._die("Maximum redirection count reached!")
self.delete()
return True # so on_reply_finished aborts
log.downloads.debug("{}: Handling redirect".format(self))