aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-11 19:17:43 +0100
committerChocobozzz <me@florianbigard.com>2018-01-11 19:17:43 +0100
commit9a8cbd8278a37ee414f17d7de7c7281123484ba1 (patch)
tree11dcf06211e6e49cfb638172c3fa65011ff7fb88 /server/middlewares
parent05bc4dfa069be5273765a68652598d72dbf482fb (diff)
downloadPeerTube-9a8cbd8278a37ee414f17d7de7c7281123484ba1.tar.gz
PeerTube-9a8cbd8278a37ee414f17d7de7c7281123484ba1.tar.zst
PeerTube-9a8cbd8278a37ee414f17d7de7c7281123484ba1.zip
Activity Pub improvements
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/activitypub.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/middlewares/activitypub.ts b/server/middlewares/activitypub.ts
index 1488b42ab..c7102b6bf 100644
--- a/server/middlewares/activitypub.ts
+++ b/server/middlewares/activitypub.ts
@@ -35,6 +35,7 @@ async function checkSignature (req: Request, res: Response, next: NextFunction)
35function executeIfActivityPub (fun: RequestHandler | RequestHandler[]) { 35function executeIfActivityPub (fun: RequestHandler | RequestHandler[]) {
36 return (req: Request, res: Response, next: NextFunction) => { 36 return (req: Request, res: Response, next: NextFunction) => {
37 const accepted = req.accepts(ACCEPT_HEADERS) 37 const accepted = req.accepts(ACCEPT_HEADERS)
38 console.log(accepted)
38 if (accepted === false || ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS.indexOf(accepted) === -1) { 39 if (accepted === false || ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS.indexOf(accepted) === -1) {
39 return next() 40 return next()
40 } 41 }