Add host header to test_client (ported)

This commit is contained in:
Daniel García Aubert 2018-03-16 17:55:04 +01:00
parent 5e494f0982
commit 970aca1c9d

View File

@ -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) {