FIX: status route should be served as text not html

This commit is contained in:
Sam 2015-02-06 15:56:21 +11:00
parent 820ce8765e
commit 95f8b3ed4c

View File

@ -6,9 +6,9 @@ class ForumsController < ApplicationController
def status
if $shutdown
render text: 'shutting down', status: 500
render text: 'shutting down', status: 500, content_type: 'text/plain'
else
render text: 'ok'
render text: 'ok', content_type: 'text/plain'
end
end