]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Explicitly set text/plain as the type for error responses
[rails.git] / app / controllers / application_controller.rb
index 067fc6a511f5856404ef601084d536f21f0be843..d541eba22f55ab90bf0ee972e964a7f968b7073f 100644 (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