diff mercurial/hgweb/request.py @ 2507:7e01da2bc7f3

Fix two small bugs that would've prevented the web interface and IPv6 from working.
author Eric Hopper <hopper@omnifarious.org>
date Tue, 27 Jun 2006 00:09:35 -0700
parents d0db3462d568
children 419c42223bee
line wrap: on
line diff
--- a/mercurial/hgweb/request.py
+++ b/mercurial/hgweb/request.py
@@ -59,7 +59,7 @@ class _wsgirequest(object):
     def write(self, *things):
         if self.server_write is None:
             if not self.headers:
-                raise RuntimeError("request.write called before headers sent.")
+                self.header()
             self.server_write = self.start_response('200 Script output follows',
                                                     self.headers)
             self.start_response = None