From ba03356151ce45d52f6ea05e59a39af2bb07cbc3 Mon Sep 17 00:00:00 2001 From: John Garland Date: Wed, 5 May 2010 02:49:55 +1000 Subject: [PATCH] Add more HTTP status codes to httpdownloader --- deluge/httpdownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/httpdownloader.py b/deluge/httpdownloader.py index 93ce35549..b92bd9e06 100644 --- a/deluge/httpdownloader.py +++ b/deluge/httpdownloader.py @@ -94,7 +94,7 @@ class HTTPDownloader(client.HTTPDownloader): self.fileName = 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] error = PageRedirect(self.code, location=location) self.noPage(Failure(error))