Author: damoxc

Revision: 4993

Log:
        handle no file being uploaded cleanly

Diff:
Modified: trunk/deluge/ui/web/server.py
===================================================================
--- trunk/deluge/ui/web/server.py       2009-04-02 18:50:45 UTC (rev 4992)
+++ trunk/deluge/ui/web/server.py       2009-04-02 18:57:41 UTC (rev 4993)
@@ -106,6 +106,10 @@
             request.setResponseCode(http.NOT_ALLOWED)
             return ""
         
+        if "file" not in request.args:
+            request.setResponseCode(http.OK)
+            return ""
+        
         tempdir = os.path.join(tempfile.gettempdir(), "delugeweb")
         if not os.path.isdir(tempdir):
             os.mkdir(tempdir)



--~--~---------~--~----~------------~-------~--~----~
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