Changeset 1972
- Timestamp:
- 05/25/08 18:19:45
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-2.x/cherrypy/filters/logdebuginfofilter.py
r1519 r1972 21 21 22 22 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] 24 24 if ct in mimelist: 25 25 body = cherrypy.response.collapse_body()

