From 228d623aef420d25ba8fc506bf7ebee0c8079cb4 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 15 Mar 2010 12:12:44 +0000 Subject: [PATCH] compress the response of Upload --- deluge/ui/web/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py index 493ad369a..15adcc8f4 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):