Explicitly set text/plain as the type for error responses
This commit is contained in:
parent
95c3a4439e
commit
b0a84cf1bf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue