aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax/xhr.js
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-02-09 17:50:45 +0100
committerjaubourg <j@ubourg.net>2011-02-09 17:50:45 +0100
commit6f4b36ed174b000701b9a40ef45f301b2b1505db (patch)
tree7461c615e6e7834e757addde2b4fdc4bcf586b40 /src/ajax/xhr.js
parentf6e173437e9f94cd4e713e556c6fc8ca68be8384 (diff)
downloadjquery-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.js6
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