Issue 756, fixed status code for down for maintenance, thanks Chris
This commit is contained in:
@@ -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
@@ -430,7 +430,7 @@ def wsgibase(environ, responder):
|
|||||||
web2py_error='invalid application')
|
web2py_error='invalid application')
|
||||||
elif not request.is_local and \
|
elif not request.is_local and \
|
||||||
os.path.exists(os.path.join(request.folder,'DISABLED')):
|
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,
|
request.url = Url(r=request, args=request.args,
|
||||||
extension=request.raw_extension)
|
extension=request.raw_extension)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user