compress the response of Upload

This commit is contained in:
Damien Churchill 2010-03-15 12:12:44 +00:00
parent e83737805d
commit 228d623aef
1 changed files with 2 additions and 2 deletions

View File

@ -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):