Issue 756, fixed status code for down for maintenance, thanks Chris

This commit is contained in:
Massimo Di Pierro
2012-04-21 11:37:35 -05:00
parent 2f05a11188
commit 14fc7dcb6d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-04-21 11:25:47) dev
Version 1.99.7 (2012-04-21 11:37:23) dev
+1 -1
View File
@@ -430,7 +430,7 @@ def wsgibase(environ, responder):
web2py_error='invalid application')
elif not request.is_local and \
os.path.exists(os.path.join(request.folder,'DISABLED')):
raise HTTP(200, "<html><body><h1>Down for maintenance</h1></body></html>")
raise HTTP(503, "<html><body><h1>Temporarily down for maintenance</h1></body></html>")
request.url = Url(r=request, args=request.args,
extension=request.raw_extension)