mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: status route should be served as text not html
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user