Remove global variable 'headerKey', no functional change.

This commit is contained in:
Marc Jansen
2011-09-22 04:52:35 +02:00
parent 6b30856a07
commit 8bcbb069b5

View File

@@ -129,7 +129,8 @@ OpenLayers.Request = {
// 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') {