From: Mark Wooding Date: Sat, 9 Mar 2013 05:34:26 +0000 (+0000) Subject: cgi.py: Fix stupid typo so that HTTP status codes are returned properly. X-Git-Tag: 1.0.0~29 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/chopwood/commitdiff_plain/b569edae18d4742f679924cd880271d578d01c43 cgi.py: Fix stupid typo so that HTTP status codes are returned properly. --- diff --git a/cgi.py b/cgi.py index 0630feb..b06ef85 100644 --- a/cgi.py +++ b/cgi.py @@ -264,7 +264,7 @@ def cgi_errors(hook = None): if hook: hook() if isinstance(e, U.ExpectedError) and not OUT.headerp: page('error.fhtml', - headers = dict(status = e.code), + header = dict(status = e.code), title = 'Chopwood: error', error = e) else: exty, exval, extb = SYS.exc_info() @@ -278,7 +278,7 @@ def cgi_errors(hook = None): format_tmpl(TMPL['exception.fhtml'], toplevel = False) else: page('exception.fhtml', - headers = dict(status = 500), + header = dict(status = 500), title = 'Chopwood: internal error', toplevel = True)