Fixes #8245. Ajax now ensures header names are capitalized so that non-compliant xhr implementations don't override them.
This commit is contained in:
parent
3a1d7a3c7c
commit
f2e0ae1a39
2 changed files with 13 additions and 10 deletions
|
@ -96,8 +96,8 @@ if ( jQuery.support.ajax ) {
|
|||
// Not set for crossDomain requests with no content
|
||||
// (see why at http://trac.dojotoolkit.org/ticket/9486)
|
||||
// Won't change header if already provided
|
||||
if ( !( s.crossDomain && !s.hasContent ) && !headers["x-requested-with"] ) {
|
||||
headers[ "x-requested-with" ] = "XMLHttpRequest";
|
||||
if ( !( s.crossDomain && !s.hasContent ) && !headers["X-Requested-With"] ) {
|
||||
headers[ "X-Requested-With" ] = "XMLHttpRequest";
|
||||
}
|
||||
|
||||
// Need an extra try/catch for cross domain requests in Firefox 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue