diff options
author | Robert Brewer <fumanchu@aminus.org> | 2009-02-12 00:36:27 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2009-02-12 00:36:27 +0000 |
commit | 95bd30a3bbf78c1f3d049707c80d0f581721339a (patch) | |
tree | 6f0cfa3fd42009b39fdde0f0f37f43ac2511ee55 /cherrypy/lib/encoding.py | |
parent | 5c71ad1b05add78cc0d00f07623aad5ca6f6112e (diff) | |
download | cherrypy-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.py | 2 |
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 |