Changeset 2450
- Timestamp:
- 06/14/09 23:48:18
- Files:
-
- branches/python3/cherrypy/_cperror.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/python3/cherrypy/_cperror.py
r2430 r2450 224 224 tb = format_exc() 225 225 response.headers['Content-Type'] = "text/html;charset=utf-8" 226 response.headers.pop('Content-Length', None) 226 227 227 228 content = self.get_error_page(self.status, traceback=tb, 228 229 message=self._message).encode('utf-8') 229 230 response.body = content 230 response.headers['Content-Length'] = len(content)231 231 232 232 _be_ie_unfriendly(self.code)

