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
|
// header through the user we cannot use applyDefaults, but have to
|
||||||
// check manually whether we were called with a "X-Requested-With"
|
// check manually whether we were called with a "X-Requested-With"
|
||||||
// header.
|
// header.
|
||||||
var customRequestedWithHeader = false;
|
var customRequestedWithHeader = false,
|
||||||
|
headerKey;
|
||||||
for(headerKey in config.headers) {
|
for(headerKey in config.headers) {
|
||||||
if (config.headers.hasOwnProperty( headerKey )) {
|
if (config.headers.hasOwnProperty( headerKey )) {
|
||||||
if (headerKey.toLowerCase() === 'x-requested-with') {
|
if (headerKey.toLowerCase() === 'x-requested-with') {
|
||||||
|
|||||||
Reference in New Issue
Block a user