summaryrefslogtreecommitdiff
path: root/cherrypy/lib/encoding.py
diff options
context:
space:
mode:
authorvisteya <none@none>2009-03-18 05:02:37 +0000
committervisteya <none@none>2009-03-18 05:02:37 +0000
commit75c4ed9244734590a90a00cd11b538868b94862d (patch)
treec9ed79b690e0244d8401b8b6c79aba638a2cbb48 /cherrypy/lib/encoding.py
parentb8f0c9881ea9d85536c292db84d4345390b32f03 (diff)
downloadcherrypy-git-75c4ed9244734590a90a00cd11b538868b94862d.tar.gz
change gzip() compress_level default value from 9 to 5
Diffstat (limited to 'cherrypy/lib/encoding.py')
-rw-r--r--cherrypy/lib/encoding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/lib/encoding.py b/cherrypy/lib/encoding.py
index 94dc908e..c8ed91dd 100644
--- a/cherrypy/lib/encoding.py
+++ b/cherrypy/lib/encoding.py
@@ -208,7 +208,7 @@ def decompress(body):
return data
-def gzip(compress_level=9, mime_types=['text/html', 'text/plain']):
+def gzip(compress_level=5, mime_types=['text/html', 'text/plain']):
"""Try to gzip the response body if Content-Type in mime_types.
cherrypy.response.headers['Content-Type'] must be set to one of the