Delete file on infinite redirects
This commit is contained in:
parent
dc0ddd023a
commit
3bf841bdb4
@ -739,6 +739,7 @@ class DownloadItem(QObject):
|
|||||||
|
|
||||||
if self._redirects > self.MAX_REDIRECTS:
|
if self._redirects > self.MAX_REDIRECTS:
|
||||||
self._die("Maximum redirection count reached!")
|
self._die("Maximum redirection count reached!")
|
||||||
|
self.delete()
|
||||||
return True # so on_reply_finished aborts
|
return True # so on_reply_finished aborts
|
||||||
|
|
||||||
log.downloads.debug("{}: Handling redirect".format(self))
|
log.downloads.debug("{}: Handling redirect".format(self))
|
||||||
|
Loading…
Reference in New Issue
Block a user