Tornado update

This commit is contained in:
Ruud committed 2013-08-31 15:59:47 +02:00
1 parent 1b03c7e474
commit 9c98a38604
13 files changed
+3651 -3581

No files matched your search

+6 -4
View File
@@ -242,10 +242,12 @@ class WSGIContainer(object):
return response.append
app_response = self.wsgi_application(
WSGIContainer.environ(request), start_response)
response.extend(app_response)
body = b"".join(response)
if hasattr(app_response, "close"):
app_response.close()
try:
response.extend(app_response)
body = b"".join(response)
finally:
if hasattr(app_response, "close"):
app_response.close()
if not data:
raise Exception("WSGI app did not call start_response")