]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/utils/server/clients.ts
Add ability to update a video channel
[github/Chocobozzz/PeerTube.git] / server / tests / utils / server / clients.ts
index a8c5b51c5ce51aed41a6fbcbe1e69f3b7bf8cee5..273aac74728ffe355258a68903c0ca3aa8e6280d 100644 (file)
@@ -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/)