summaryrefslogtreecommitdiffstats
path: root/pyload/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-10-08 18:47:27 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-10-08 18:47:27 +0200
commitc0f373528c55fc11d3ef592b3b1f7207306852c0 (patch)
tree822f0e717d167043887be058a56540f47d9ab4e2 /pyload/web
parentgzip compression for api (diff)
downloadpyload-c0f373528c55fc11d3ef592b3b1f7207306852c0.tar.xz
adapter simplecrypter plugin
Diffstat (limited to 'pyload/web')
-rw-r--r--pyload/web/api_app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/web/api_app.py b/pyload/web/api_app.py
index 56e901b06..39747d5ea 100644
--- a/pyload/web/api_app.py
+++ b/pyload/web/api_app.py
@@ -25,7 +25,7 @@ except ImportError:
def json_response(obj):
accept = 'gzip' in request.headers.get('Accept-Encoding', '')
result = dumps(obj)
- # don't compress small files
+ # don't compress small string
if gzip and accept and len(result) > 500:
response.headers['Vary'] = 'Accept-Encoding'
response.headers['Content-Encoding'] = 'gzip'