Skip to content
Permalink
Browse files

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

  • Loading branch information
jaubourg committed Feb 9, 2011
1 parent f6e1734 commit 6f4b36ed174b000701b9a40ef45f301b2b1505db
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/ajax/xhr.js
@@ -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

0 comments on commit 6f4b36e

Please sign in to comment.
You can’t perform that action at this time.