Implement RedirectNetworkReply.abort
This commit is contained in:
parent
6deb079c2a
commit
c82bd83715
@ -149,5 +149,9 @@ class RedirectNetworkReply(QNetworkReply):
|
|||||||
self.setAttribute(QNetworkRequest.RedirectionTargetAttribute, new_url)
|
self.setAttribute(QNetworkRequest.RedirectionTargetAttribute, new_url)
|
||||||
QTimer.singleShot(0, lambda: self.finished.emit())
|
QTimer.singleShot(0, lambda: self.finished.emit())
|
||||||
|
|
||||||
|
def abort(self):
|
||||||
|
"""Called when there's e.g. a redirection limit."""
|
||||||
|
pass
|
||||||
|
|
||||||
def readData(self, _maxlen):
|
def readData(self, _maxlen):
|
||||||
return bytes()
|
return bytes()
|
||||||
|
Loading…
Reference in New Issue
Block a user