Commits

Robert Brewer committed c0aa68b

Fix for #818 (No content type).

  • Participants
  • Parent commits 687ecb9
  • Branches cherrypy-2.x

Comments (0)

Files changed (1)

File cherrypy/filters/logdebuginfofilter.py

             return
         
         mimelist = cherrypy.config.get('log_debug_info_filter.mime_types', ['text/html'])
-        ct = cherrypy.response.headers.get('Content-Type').split(';')[0]
+        ct = cherrypy.response.headers.get('Content-Type', '').split(';')[0]
         if ct in mimelist:
             body = cherrypy.response.collapse_body()
             debuginfo = '\n'