mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Ref 705216d
: Synchronize ajax/xhr.js with master
This commit is contained in:
parent
7e383b1b07
commit
c6de821070
@ -76,7 +76,7 @@ if ( xhrSupported ) {
|
|||||||
headers["X-Requested-With"] = "XMLHttpRequest";
|
headers["X-Requested-With"] = "XMLHttpRequest";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Need an extra try/catch for cross-domain requests in Firefox 3
|
// Set headers
|
||||||
for ( i in headers ) {
|
for ( i in headers ) {
|
||||||
xhr.setRequestHeader( i, headers[ i ] );
|
xhr.setRequestHeader( i, headers[ i ] );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user