Remove global variable 'headerKey', no functional change.
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user