diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-10-08 18:47:27 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-10-08 18:47:27 +0200 |
commit | c0f373528c55fc11d3ef592b3b1f7207306852c0 (patch) | |
tree | 822f0e717d167043887be058a56540f47d9ab4e2 /pyload/web | |
parent | gzip compression for api (diff) | |
download | pyload-c0f373528c55fc11d3ef592b3b1f7207306852c0.tar.xz |
adapter simplecrypter plugin
Diffstat (limited to 'pyload/web')
-rw-r--r-- | pyload/web/api_app.py | 2 |
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' |