diff options
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 |