From 970aca1c9d6c481cd86c076165f6152a7632433b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Fri, 16 Mar 2018 17:55:04 +0100 Subject: [PATCH] Add host header to test_client (ported) --- test/acceptance/ported/support/test_client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/acceptance/ported/support/test_client.js b/test/acceptance/ported/support/test_client.js index 640f1b64..d36d811b 100644 --- a/test/acceptance/ported/support/test_client.js +++ b/test/acceptance/ported/support/test_client.js @@ -337,6 +337,7 @@ function getGeneric(layergroupConfig, url, expectedResponse, callback) { url: '/database/windshaft_test/layergroup', method: 'POST', headers: { + host: 'localhost', 'Content-Type': 'application/json' }, data: JSON.stringify(layergroupConfig) @@ -372,7 +373,10 @@ function getGeneric(layergroupConfig, url, expectedResponse, callback) { var request = { url: finalUrl, - method: 'GET' + method: 'GET', + headers: { + host: 'localhost' + } }; if (contentType === pngContentType) {