Prefer application/xml over text/xml for charset reasons
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
06c2b43f36
commit
955583aed4
@ -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',
|
||||
|
2
railties/html/javascripts/prototype.js
vendored
2
railties/html/javascripts/prototype.js
vendored
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user