Replaces jQuery.each loop for headers with a foreach loop.

This commit is contained in:
jaubourg 2011-02-09 17:50:45 +01:00
parent f6e173437e
commit 6f4b36ed17

View File

@ -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