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
This commit is contained in:
David Heinemeier Hansson 2006-03-13 05:51:55 +00:00
parent 928627292c
commit 97dd9a91c2
1 changed files with 1 additions and 1 deletions

View File

@ -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