diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-19 15:17:43 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-19 15:17:43 +0100 |
commit | 85414add64d2215a44866471913a8470638742e4 (patch) | |
tree | 3612797b9e155c6c9df059cbdd11a0a7a1fcf011 /server/middlewares/activitypub.ts | |
parent | 232f04c809bf25952b790da5685b36f05cb19750 (diff) | |
download | PeerTube-85414add64d2215a44866471913a8470638742e4.tar.gz PeerTube-85414add64d2215a44866471913a8470638742e4.tar.zst PeerTube-85414add64d2215a44866471913a8470638742e4.zip |
Fix player play exception on chromium
Diffstat (limited to 'server/middlewares/activitypub.ts')
-rw-r--r-- | server/middlewares/activitypub.ts | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/server/middlewares/activitypub.ts b/server/middlewares/activitypub.ts index 9113e02a7..c00a6affa 100644 --- a/server/middlewares/activitypub.ts +++ b/server/middlewares/activitypub.ts | |||
@@ -34,7 +34,6 @@ async function checkSignature (req: Request, res: Response, next: NextFunction) | |||
34 | function executeIfActivityPub (fun: RequestHandler | RequestHandler[]) { | 34 | function executeIfActivityPub (fun: RequestHandler | RequestHandler[]) { |
35 | return (req: Request, res: Response, next: NextFunction) => { | 35 | return (req: Request, res: Response, next: NextFunction) => { |
36 | const accepted = req.accepts(ACCEPT_HEADERS) | 36 | const accepted = req.accepts(ACCEPT_HEADERS) |
37 | console.log(accepted) | ||
38 | if (accepted === false || ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS.indexOf(accepted) === -1) { | 37 | if (accepted === false || ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS.indexOf(accepted) === -1) { |
39 | return next() | 38 | return next() |
40 | } | 39 | } |