summaryrefslogtreecommitdiff
path: root/paste/gzipper.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-03-28 17:38:22 +0000
committerianb <devnull@localhost>2006-03-28 17:38:22 +0000
commitae5e16492e248bdc8b25a40c0cb04afb54e24362 (patch)
tree1569ef32a8063862caac822a0b2955a491cf3fdf /paste/gzipper.py
parentabf43f033bfe6b8856613af13a34bcb7b2838209 (diff)
downloadpaste-ae5e16492e248bdc8b25a40c0cb04afb54e24362.tar.gz
Fix from Damjan when Accept-Encoding is missing from request
Diffstat (limited to 'paste/gzipper.py')
-rw-r--r--paste/gzipper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/gzipper.py b/paste/gzipper.py
index c7a3198..0baee6f 100644
--- a/paste/gzipper.py
+++ b/paste/gzipper.py
@@ -20,7 +20,7 @@ class middleware(object):
self.compress_level = int(compress_level)
def __call__(self, environ, start_response):
- if 'gzip' not in environ.get('HTTP_ACCEPT_ENCODING'):
+ if 'gzip' not in environ.get('HTTP_ACCEPT_ENCODING', ''):
# nothing for us to do, so this middleware will
# be a no-op:
return self.application(environ, start_response)