Add more HTTP status codes to httpdownloader
This commit is contained in:
parent
d28cf93686
commit
ba03356151
|
@ -94,7 +94,7 @@ class HTTPDownloader(client.HTTPDownloader):
|
||||||
self.fileName = new_file_name
|
self.fileName = new_file_name
|
||||||
self.value = new_file_name
|
self.value = new_file_name
|
||||||
|
|
||||||
elif self.code in (http.TEMPORARY_REDIRECT, http.MOVED_PERMANENTLY):
|
elif self.code in (http.MOVED_PERMANENTLY, http.FOUND, http.SEE_OTHER, http.TEMPORARY_REDIRECT):
|
||||||
location = headers["location"][0]
|
location = headers["location"][0]
|
||||||
error = PageRedirect(self.code, location=location)
|
error = PageRedirect(self.code, location=location)
|
||||||
self.noPage(Failure(error))
|
self.noPage(Failure(error))
|
||||||
|
|
Loading…
Reference in New Issue