Commits

Robert Brewer committed c69b15b

Backport of [2131] (Buglet in gzip).

  • Participants
  • Parent commits 76e0eb6
  • Branches cherrypy-3.1.x

Comments (0)

Files changed (1)

cherrypy/lib/encoding.py

         # 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