Changeset 406
- Timestamp:
- 07/05/05 15:30:24
- Files:
-
- trunk/cherrypy/_cpwsgi.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cpwsgi.py
r405 r406 95 95 environ['wsgi.url_scheme'], 96 96 ) 97 start_response(cherrypy.response.status, cherrypy.response.headers)98 97 except: 99 98 tb = _cputil.formatExc() 100 99 cherrypy.log(tb) 101 100 s, h, b = _cphttptools.bareError(tb) 102 start_response(s, h, sys.exc_info()) 101 exc = sys.exc_info() 102 else: 103 resp = cherrypy.response 104 s, h, b = resp.status, resp.headers, resp.body 105 exc = None 103 106 104 107 try: 105 for chunk in cherrypy.response.body: 108 start_response(s, h, exc) 109 for chunk in b: 106 110 # WSGI requires all data to be of type "str". This coercion should 107 111 # not take any time at all if chunk is already of type "str".

