Changeset 831
- Timestamp:
- 11/21/05 19:12:44
- Files:
-
- trunk/cherrypy/_cperror.py (modified) (1 diff)
- trunk/cherrypy/_cputil.py (modified) (1 diff)
- trunk/cherrypy/filters/encodingfilter.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cperror.py
r793 r831 124 124 307: "This resource has moved temporarily to <a href='%s'>%s</a>.", 125 125 }[status] 126 cherrypy.response.body = "<br />\n".join([msg % (url, url)127 for url in self.urls])126 cherrypy.response.body = ["<br />\n".join([msg % (url, url) 127 for url in self.urls])] 128 128 elif status == 304: 129 129 # Not Modified. trunk/cherrypy/_cputil.py
r830 r831 261 261 # so don't bother cleaning up response values here. 262 262 response.status = status 263 response.body = getErrorPage(status, traceback=tb, message=message) 264 response.headerMap['Content-Length'] = len(response.body) 263 content = getErrorPage(status, traceback=tb, message=message) 264 response.body = [content] 265 response.headerMap['Content-Length'] = len(content) 265 266 response.headerMap['Content-Type'] = "text/html" 266 267 trunk/cherrypy/filters/encodingfilter.py
r821 r831 24 24 def encode_body(encoding): 25 25 try: 26 response.body = response.body.encode(encoding)26 response.body = [response.body.encode(encoding)] 27 27 except UnicodeError: 28 28 # Try the next encoding

