diff mercurial/hgweb/request.py @ 7741:a3d7f99c23c0

hgweb: support custom http headers in ErrorResponse
author Sune Foldager <cryo@cyanite.org>
date Mon, 09 Feb 2009 11:31:52 +0100
parents a42d27bc809d
children fceb9fa01a00
line wrap: on
line diff
--- a/mercurial/hgweb/request.py	Mon Feb 09 11:29:09 2009 +0100
+++ b/mercurial/hgweb/request.py	Mon Feb 09 11:31:52 2009 +0100
@@ -77,6 +77,7 @@
 
             if isinstance(status, ErrorResponse):
                 status = statusmessage(status.code)
+                self.header(status.headers)
             elif status == 200:
                 status = '200 Script output follows'
             elif isinstance(status, int):