chiark
/
gitweb
/
~mdw
/
chopwood
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
138df99
)
cgi.py: Fix stupid typo so that HTTP status codes are returned properly.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 9 Mar 2013 05:34:26 +0000
(
05:34
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 9 Mar 2013 05:35:11 +0000
(
05:35
+0000)
cgi.py
patch
|
blob
|
blame
|
history
diff --git
a/cgi.py
b/cgi.py
index 0630feb4d5a422d05fe48028743d3c0d77ec2471..b06ef8590c88364389ceadb1d8da0dc47e82e264 100644
(file)
--- 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',
if hook: hook()
if isinstance(e, U.ExpectedError) and not OUT.headerp:
page('error.fhtml',
- header
s
= dict(status = e.code),
+ header = dict(status = e.code),
title = 'Chopwood: error', error = e)
else:
exty, exval, extb = SYS.exc_info()
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',
format_tmpl(TMPL['exception.fhtml'], toplevel = False)
else:
page('exception.fhtml',
- header
s
= dict(status = 500),
+ header = dict(status = 500),
title = 'Chopwood: internal error',
toplevel = True)
title = 'Chopwood: internal error',
toplevel = True)