Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/common.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 | bd522d09d5e3 |
children | aa983c3d94a9 |
line wrap: on
line diff
--- a/mercurial/hgweb/common.py Mon Feb 09 11:29:09 2009 +0100 +++ b/mercurial/hgweb/common.py Mon Feb 09 11:31:52 2009 +0100 @@ -17,9 +17,10 @@ HTTP_SERVER_ERROR = 500 class ErrorResponse(Exception): - def __init__(self, code, message=None): + def __init__(self, code, message=None, headers=[]): Exception.__init__(self) self.code = code + self.headers = headers if message is not None: self.message = message else: