Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1972

Show
Ignore:
Timestamp:
05/25/08 18:19:45
Author:
fumanchu
Message:

Fix for #818 (No content type).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/filters/logdebuginfofilter.py

    r1519 r1972  
    2121         
    2222        mimelist = cherrypy.config.get('log_debug_info_filter.mime_types', ['text/html']) 
    23         ct = cherrypy.response.headers.get('Content-Type').split(';')[0] 
     23        ct = cherrypy.response.headers.get('Content-Type', '').split(';')[0] 
    2424        if ct in mimelist: 
    2525            body = cherrypy.response.collapse_body() 

Hosted by WebFaction

Log in as guest/cpguest to create tickets