aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-16 11:04:12 +0100
committerChocobozzz <me@florianbigard.com>2018-02-16 11:04:12 +0100
commit0b4957126899975f603038501337421f84bcb3e4 (patch)
tree1bbd2b44b4baa81516c4cfda7f0f119fb26b162c /server
parent63ce5a54f24ec0d184f321e9f46dcda7c0d19325 (diff)
downloadPeerTube-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.ts2
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 @@
1import * as request from 'supertest' 1import * as request from 'supertest'
2import * as urlUtil from 'url'
2 3
3function getClient (url: string) { 4function 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/)