diff options
author | ianb <devnull@localhost> | 2005-08-22 21:58:20 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2005-08-22 21:58:20 +0000 |
commit | 608886cdb1b04028cc8a5eb80b7d6d170937f253 (patch) | |
tree | b0a10dfaf0eee064210f43c66b756249d2cc6359 /paste/gzipper.py | |
parent | 4555158487e7e395ef93bfab7002c7a4a4b12ac0 (diff) | |
download | paste-608886cdb1b04028cc8a5eb80b7d6d170937f253.tar.gz |
paste.deployified gzipper
Diffstat (limited to 'paste/gzipper.py')
-rw-r--r-- | paste/gzipper.py | 4 |
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'): |