[OpenLayers-Commits] r12414 - trunk/openlayers/lib/OpenLayers

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Sep 22 23:42:59 EDT 2011


Author: openlayersgit
Date: 2011-09-22 20:42:58 -0700 (Thu, 22 Sep 2011)
New Revision: 12414

Modified:
   trunk/openlayers/lib/OpenLayers/Request.js
Log:
Remove global variable 'headerKey', no functional change.

Modified: trunk/openlayers/lib/OpenLayers/Request.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Request.js	2011-09-23 03:42:46 UTC (rev 12413)
+++ trunk/openlayers/lib/OpenLayers/Request.js	2011-09-23 03:42:58 UTC (rev 12414)
@@ -129,7 +129,8 @@
         // header through the user we cannot use applyDefaults, but have to 
         // check manually whether we were called with a "X-Requested-With"
         // header.
-        var customRequestedWithHeader = false;
+        var customRequestedWithHeader = false,
+            headerKey;
         for(headerKey in config.headers) {
             if (config.headers.hasOwnProperty( headerKey )) {
                 if (headerKey.toLowerCase() === 'x-requested-with') {



More information about the Commits mailing list