Replaces jQuery.each loop for headers with a foreach loop.
This commit is contained in:
parent
f6e173437e
commit
6f4b36ed17
1 changed files with 3 additions and 3 deletions
|
@ -102,9 +102,9 @@ if ( jQuery.support.ajax ) {
|
||||||
|
|
||||||
// Need an extra try/catch for cross domain requests in Firefox 3
|
// Need an extra try/catch for cross domain requests in Firefox 3
|
||||||
try {
|
try {
|
||||||
jQuery.each( headers, function( key, value ) {
|
for ( i in headers ) {
|
||||||
xhr.setRequestHeader( key, value );
|
xhr.setRequestHeader( i, headers[ i ] );
|
||||||
} );
|
}
|
||||||
} catch( _ ) {}
|
} catch( _ ) {}
|
||||||
|
|
||||||
// Do send the request
|
// Do send the request
|
||||||
|
|
Loading…
Add table
Reference in a new issue