summaryrefslogtreecommitdiff
path: root/cherrypy/lib/encoding.py
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2009-02-12 00:36:27 +0000
committerRobert Brewer <fumanchu@aminus.org>2009-02-12 00:36:27 +0000
commit95bd30a3bbf78c1f3d049707c80d0f581721339a (patch)
tree6f0cfa3fd42009b39fdde0f0f37f43ac2511ee55 /cherrypy/lib/encoding.py
parent5c71ad1b05add78cc0d00f07623aad5ca6f6112e (diff)
downloadcherrypy-git-95bd30a3bbf78c1f3d049707c80d0f581721339a.tar.gz
Buglet in gzip. See http://groups.google.com/group/cherrypy-users/msg/5ff61f51fa52685f.
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 b5b77f0d..94dc908e 100644
--- a/cherrypy/lib/encoding.py
+++ b/cherrypy/lib/encoding.py
@@ -241,7 +241,7 @@ def gzip(compress_level=9, mime_types=['text/html', 'text/plain']):
# to the client.
return
- ct = response.headers.get('Content-Type').split(';')[0]
+ ct = response.headers.get('Content-Type', '').split(';')[0]
for coding in acceptable:
if coding.value == 'identity' and coding.qvalue != 0:
return