Module: deluge
Branch: master
Commit: 228d623aef420d25ba8fc506bf7ebee0c8079cb4

Author: Damien Churchill <[email protected]>
Date:   Mon Mar 15 12:12:44 2010 +0000

compress the response of Upload

---

 deluge/ui/web/server.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py
index 493ad36..15adcc8 100644
--- a/deluge/ui/web/server.py
+++ b/deluge/ui/web/server.py
@@ -176,10 +176,10 @@ class Upload(resource.Resource):
             filenames.append(fn)
         request.setHeader("content-type", "text/html")
         request.setResponseCode(http.OK)
-        return common.json.dumps({
+        return compress(common.json.dumps({
             'success': True,
             'files': filenames
-        })
+        }), request)
 
 class Render(resource.Resource):
 

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