From b0a84cf1bff1f4c41f30680ceffd23ea28f93479 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 24 Apr 2013 17:46:45 +0100 Subject: [PATCH] Explicitly set text/plain as the type for error responses --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 067fc6a51..d541eba22 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -281,7 +281,7 @@ class ApplicationController < ActionController::Base render :text => result.to_s, :content_type => "text/xml" else - render :text => message, :status => status + render :text => message, :status => status, :content_type => "text/plain" end end -- 2.43.2