summaryrefslogtreecommitdiff
path: root/paste/gzipper.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-08-22 21:58:20 +0000
committerianb <devnull@localhost>2005-08-22 21:58:20 +0000
commit608886cdb1b04028cc8a5eb80b7d6d170937f253 (patch)
treeb0a10dfaf0eee064210f43c66b756249d2cc6359 /paste/gzipper.py
parent4555158487e7e395ef93bfab7002c7a4a4b12ac0 (diff)
downloadpaste-608886cdb1b04028cc8a5eb80b7d6d170937f253.tar.gz
paste.deployified gzipper
Diffstat (limited to 'paste/gzipper.py')
-rw-r--r--paste/gzipper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/gzipper.py b/paste/gzipper.py
index 50e9e48..88ddd9c 100644
--- a/paste/gzipper.py
+++ b/paste/gzipper.py
@@ -12,9 +12,9 @@ class GzipOutput(object):
class middleware(object):
- def __init__(self, application, compress_level=5):
+ def __init__(self, application, global_conf, compress_level=5):
self.application = application
- self.compress_level = compress_level
+ self.compress_level = int(compress_level)
def __call__(self, environ, start_response):
if 'gzip' not in environ.get('HTTP_ACCEPT_ENCODING'):