From 95f8b3ed4c534b2e2cdc7a20209489e17e19d94c Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 6 Feb 2015 15:56:21 +1100 Subject: [PATCH] FIX: status route should be served as text not html --- app/controllers/forums_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/forums_controller.rb b/app/controllers/forums_controller.rb index d930c0da959..505f98a2ff4 100644 --- a/app/controllers/forums_controller.rb +++ b/app/controllers/forums_controller.rb @@ -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