Explicitly set text/plain as the type for error responses

This commit is contained in:
Tom Hughes 2013-04-24 17:46:45 +01:00
parent 95c3a4439e
commit b0a84cf1bf

View file

@ -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