Add more HTTP status codes to httpdownloader

This commit is contained in:
John Garland 2010-05-05 02:49:55 +10:00
parent d28cf93686
commit ba03356151
1 changed files with 1 additions and 1 deletions

View File

@ -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))