diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-13 05:51:55 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-13 05:51:55 +0000 |
commit | 97dd9a91c249ec8717cb07e1f6a08b58f3544a5d (patch) | |
tree | 8271da8bcb2604528f03df916ac2dca489d66650 /actionpack/lib/action_controller/base.rb | |
parent | 928627292ce8d1c33589c574475a2edba105be73 (diff) | |
download | rails-97dd9a91c249ec8717cb07e1f6a08b58f3544a5d.tar.gz rails-97dd9a91c249ec8717cb07e1f6a08b58f3544a5d.tar.bz2 rails-97dd9a91c249ec8717cb07e1f6a08b58f3544a5d.zip |
Always use application/xml, then the charset is determined by the XML doc
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3860 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index da48dc3255..bcfea86ac4 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -728,7 +728,7 @@ module ActionController #:nodoc: end def render_xml(xml, status = nil) - @response.headers['Content-Type'] = 'text/xml; charset=UTF-8' + @response.headers['Content-Type'] = 'application/xml' render_text(xml, status) end |