Show More
@@ -69,5 +69,9 b' def launch(application):' | |||||
69 | return write |
|
69 | return write | |
70 |
|
70 | |||
71 | content = application(environ, start_response) |
|
71 | content = application(environ, start_response) | |
72 | for chunk in content: |
|
72 | try: | |
73 | write(chunk) |
|
73 | for chunk in content: | |
|
74 | write(chunk) | |||
|
75 | finally: | |||
|
76 | if hasattr(content, 'close'): | |||
|
77 | content.close() |
General Comments 0
You need to be logged in to leave comments.
Login now