Module: deluge
Branch: master
Commit: ba03356151ce45d52f6ea05e59a39af2bb07cbc3

Author: John Garland <[email protected]>
Date:   Wed May  5 02:49:55 2010 +1000

Add more HTTP status codes to httpdownloader

---

 deluge/httpdownloader.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/deluge/httpdownloader.py b/deluge/httpdownloader.py
index 93ce355..b92bd9e 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))

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to