From c0f373528c55fc11d3ef592b3b1f7207306852c0 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 8 Oct 2013 18:47:27 +0200 Subject: adapter simplecrypter plugin --- pyload/web/api_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyload/web') 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' -- cgit v1.2.3