Make sure config.headers does not overwrite DEFAULT_CONFIG.headers in OpenLayers.Request.issue
This commit is contained in:
@@ -173,8 +173,10 @@ OpenLayers.Util.extend(OpenLayers.Request, {
|
||||
this.DEFAULT_CONFIG,
|
||||
{proxy: OpenLayers.ProxyHost}
|
||||
);
|
||||
config = config || {};
|
||||
config.headers = config.headers || {};
|
||||
config = OpenLayers.Util.applyDefaults(config, defaultConfig);
|
||||
|
||||
config.headers = OpenLayers.Util.applyDefaults(config.headers, defaultConfig.headers);
|
||||
// Always set the "X-Requested-With" header to signal that this request
|
||||
// was issued through the XHR-object. Since header keys are case
|
||||
// insensitive and we want to allow overriding of the "X-Requested-With"
|
||||
|
||||
Reference in New Issue
Block a user