diff 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
line wrap: on
line diff
--- a/mercurial/hgweb/wsgicgi.py	Wed Aug 20 19:00:39 2008 +0200
+++ b/mercurial/hgweb/wsgicgi.py	Thu Aug 21 10:55:24 2008 +0200
@@ -62,4 +62,6 @@
         headers_set[:] = [status, response_headers]
         return write
 
-    application(environ, start_response)
+    content = application(environ, start_response)
+    for chunk in content:
+        write(chunk)