From 0b4957126899975f603038501337421f84bcb3e4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Feb 2018 11:04:12 +0100 Subject: Try to improve production guide --- server/tests/utils/server/clients.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server') diff --git a/server/tests/utils/server/clients.ts b/server/tests/utils/server/clients.ts index a8c5b51c5..273aac747 100644 --- a/server/tests/utils/server/clients.ts +++ b/server/tests/utils/server/clients.ts @@ -1,10 +1,12 @@ import * as request from 'supertest' +import * as urlUtil from 'url' function getClient (url: string) { const path = '/api/v1/oauth-clients/local' return request(url) .get(path) + .set('Host', urlUtil.parse(url).host) .set('Accept', 'application/json') .expect(200) .expect('Content-Type', /json/) -- cgit v1.2.3