From 6f4b36ed174b000701b9a40ef45f301b2b1505db Mon Sep 17 00:00:00 2001 From: jaubourg Date: Wed, 9 Feb 2011 17:50:45 +0100 Subject: [PATCH] Replaces jQuery.each loop for headers with a foreach loop. --- src/ajax/xhr.js | 6 +++--- 1 file 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 -- 2.39.5