]> git.openstreetmap.org Git - rails.git/commitdiff
Explicitly set text/plain as the type for error responses
authorTom Hughes <tom@compton.nu>
Wed, 24 Apr 2013 16:46:45 +0000 (17:46 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 24 Apr 2013 16:46:45 +0000 (17:46 +0100)
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