diff --git a/qutebrowser/browser/downloads.py b/qutebrowser/browser/downloads.py index 641621bd2..d526f5c46 100644 --- a/qutebrowser/browser/downloads.py +++ b/qutebrowser/browser/downloads.py @@ -402,6 +402,8 @@ class DownloadItem(QObject): reply = self._reply reply.finished.disconnect(self.on_reply_finished) self._reply = None + if self.fileobj is not None: + self.fileobj.seek(0) self.redirected.emit(request, reply) # this will change self._reply! reply.deleteLater() # the old one return True