comparison mercurial/hgweb/wsgicgi.py @ 6922:1ec2d227a521

hgweb: fix WSGI iterators handling in CGI adapter (issue1254)
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 21 Aug 2008 10:55:24 +0200
parents f429e0e067a8
children 8fee8ff13d37
comparison
equal deleted inserted replaced
6921:2cb708e25a5d 6922:1ec2d227a521
60 raise AssertionError("Headers already set!") 60 raise AssertionError("Headers already set!")
61 61
62 headers_set[:] = [status, response_headers] 62 headers_set[:] = [status, response_headers]
63 return write 63 return write
64 64
65 application(environ, start_response) 65 content = application(environ, start_response)
66 for chunk in content:
67 write(chunk)