Add host header to test_client (ported)
This commit is contained in:
parent
5e494f0982
commit
970aca1c9d
@ -337,6 +337,7 @@ function getGeneric(layergroupConfig, url, expectedResponse, callback) {
|
|||||||
url: '/database/windshaft_test/layergroup',
|
url: '/database/windshaft_test/layergroup',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
host: 'localhost',
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
data: JSON.stringify(layergroupConfig)
|
data: JSON.stringify(layergroupConfig)
|
||||||
@ -372,7 +373,10 @@ function getGeneric(layergroupConfig, url, expectedResponse, callback) {
|
|||||||
|
|
||||||
var request = {
|
var request = {
|
||||||
url: finalUrl,
|
url: finalUrl,
|
||||||
method: 'GET'
|
method: 'GET',
|
||||||
|
headers: {
|
||||||
|
host: 'localhost'
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (contentType === pngContentType) {
|
if (contentType === pngContentType) {
|
||||||
|
Loading…
Reference in New Issue
Block a user