Add host header to test-client (ported)
This commit is contained in:
parent
970aca1c9d
commit
fccf46c67d
@ -72,7 +72,7 @@ function createLayergroup(layergroupConfig, options, callback) {
|
||||
});
|
||||
},
|
||||
function validateLayergroup(err, res) {
|
||||
assert.ok(!err, 'Failed to request layergroup');
|
||||
assert.ifError(err);
|
||||
|
||||
var parsedBody;
|
||||
var layergroupid;
|
||||
@ -129,6 +129,7 @@ function layergroupRequest(layergroupConfig, method, callbackName, extraParams)
|
||||
var request = {
|
||||
url: '/database/windshaft_test/layergroup',
|
||||
headers: {
|
||||
host: 'localhost',
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user