mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Replaces jQuery.each loop for headers with a foreach loop.
This commit is contained in:
parent
f6e173437e
commit
6f4b36ed17
@ -102,9 +102,9 @@ if ( jQuery.support.ajax ) {
|
||||
|
||||
// Need an extra try/catch for cross domain requests in Firefox 3
|
||||
try {
|
||||
jQuery.each( headers, function( key, value ) {
|
||||
xhr.setRequestHeader( key, value );
|
||||
} );
|
||||
for ( i in headers ) {
|
||||
xhr.setRequestHeader( i, headers[ i ] );
|
||||
}
|
||||
} catch( _ ) {}
|
||||
|
||||
// Do send the request
|
||||
|
Loading…
Reference in New Issue
Block a user