mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: status route should be served as text not html
This commit is contained in:
parent
820ce8765e
commit
95f8b3ed4c
1 changed files with 2 additions and 2 deletions
|
@ -6,9 +6,9 @@ class ForumsController < ApplicationController
|
||||||
|
|
||||||
def status
|
def status
|
||||||
if $shutdown
|
if $shutdown
|
||||||
render text: 'shutting down', status: 500
|
render text: 'shutting down', status: 500, content_type: 'text/plain'
|
||||||
else
|
else
|
||||||
render text: 'ok'
|
render text: 'ok', content_type: 'text/plain'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue