diff options
author | jaubourg <j@ubourg.net> | 2011-02-09 17:50:45 +0100 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2011-02-09 17:50:45 +0100 |
commit | 6f4b36ed174b000701b9a40ef45f301b2b1505db (patch) | |
tree | 7461c615e6e7834e757addde2b4fdc4bcf586b40 /src/ajax/xhr.js | |
parent | f6e173437e9f94cd4e713e556c6fc8ca68be8384 (diff) | |
download | jquery-6f4b36ed174b000701b9a40ef45f301b2b1505db.tar.gz jquery-6f4b36ed174b000701b9a40ef45f301b2b1505db.zip |
Replaces jQuery.each loop for headers with a foreach loop.
Diffstat (limited to 'src/ajax/xhr.js')
-rw-r--r-- | src/ajax/xhr.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index fcea52c16..f31fa7026 100644 --- a/src/ajax/xhr.js +++ b/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 |