Skip to content

Commit

Permalink
Prefer application/xml over text/xml for charset reasons
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Mar 13, 2006
1 parent 06c2b43 commit 955583a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -704,7 +704,7 @@ Ajax.Request.prototype = Object.extend(new Ajax.Base(), {
var requestHeaders =
['X-Requested-With', 'XMLHttpRequest',
'X-Prototype-Version', Prototype.Version,
'Accept', 'text/javascript, text/xml, text/html, */*' ];
'Accept', 'text/javascript, text/html, application/xml, text/xml, */*'];

if (this.options.method == 'post') {
requestHeaders.push('Content-type',
Expand Down
2 changes: 1 addition & 1 deletion railties/html/javascripts/prototype.js
Expand Up @@ -704,7 +704,7 @@ Ajax.Request.prototype = Object.extend(new Ajax.Base(), {
var requestHeaders =
['X-Requested-With', 'XMLHttpRequest',
'X-Prototype-Version', Prototype.Version,
'Accept', 'text/javascript, text/xml, text/html, */*' ];
'Accept', 'text/javascript, text/html, application/xml, text/xml, */*'];

if (this.options.method == 'post') {
requestHeaders.push('Content-type',
Expand Down

0 comments on commit 955583a

Please sign in to comment.