diff -r d74fc8dec2b4 -r e0173902c813 mercurial/hgweb/wsgicgi.py --- a/mercurial/hgweb/wsgicgi.py Fri Nov 30 18:23:18 2007 +0100 +++ b/mercurial/hgweb/wsgicgi.py Sat Dec 01 18:26:27 2007 +0100 @@ -61,13 +61,4 @@ headers_set[:] = [status, response_headers] return write - result = application(environ, start_response) - try: - for data in result: - if data: # don't send headers until body appears - write(data) - if not headers_sent: - write('') # send headers now if body was empty - finally: - if hasattr(result,'close'): - result.close() + application(environ, start_response)