From 608886cdb1b04028cc8a5eb80b7d6d170937f253 Mon Sep 17 00:00:00 2001 From: ianb Date: Mon, 22 Aug 2005 21:58:20 +0000 Subject: paste.deployified gzipper --- paste/gzipper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'paste/gzipper.py') 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'): -- cgit v1.2.1