projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95c3a44
)
Explicitly set text/plain as the type for error responses
author
Tom Hughes
<tom@compton.nu>
Wed, 24 Apr 2013 16:46:45 +0000
(17:46 +0100)
committer
Tom Hughes
<tom@compton.nu>
Wed, 24 Apr 2013 16:46:45 +0000
(17:46 +0100)
app/controllers/application_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/application_controller.rb
b/app/controllers/application_controller.rb
index 067fc6a511f5856404ef601084d536f21f0be843..d541eba22f55ab90bf0ee972e964a7f968b7073f 100644
(file)
--- 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