diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-16 11:04:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-16 11:04:12 +0100 |
commit | 0b4957126899975f603038501337421f84bcb3e4 (patch) | |
tree | 1bbd2b44b4baa81516c4cfda7f0f119fb26b162c /server | |
parent | 63ce5a54f24ec0d184f321e9f46dcda7c0d19325 (diff) | |
download | PeerTube-0b4957126899975f603038501337421f84bcb3e4.tar.gz PeerTube-0b4957126899975f603038501337421f84bcb3e4.tar.zst PeerTube-0b4957126899975f603038501337421f84bcb3e4.zip |
Try to improve production guide
Diffstat (limited to 'server')
-rw-r--r-- | server/tests/utils/server/clients.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
1 | import * as request from 'supertest' | 1 | import * as request from 'supertest' |
2 | import * as urlUtil from 'url' | ||
2 | 3 | ||
3 | function getClient (url: string) { | 4 | function getClient (url: string) { |
4 | const path = '/api/v1/oauth-clients/local' | 5 | const path = '/api/v1/oauth-clients/local' |
5 | 6 | ||
6 | return request(url) | 7 | return request(url) |
7 | .get(path) | 8 | .get(path) |
9 | .set('Host', urlUtil.parse(url).host) | ||
8 | .set('Accept', 'application/json') | 10 | .set('Accept', 'application/json') |
9 | .expect(200) | 11 | .expect(200) |
10 | .expect('Content-Type', /json/) | 12 | .expect('Content-Type', /json/) |