aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/activitypub.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-30 13:15:25 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-30 13:15:25 +0100
commit1b5b10d13152d704d2396a1e53d56aba1a8e7e03 (patch)
tree32e3dab1590cc909e2100fdc9aedd905cd7778f0 /server/middlewares/activitypub.ts
parent6cbdbdef1786aabb2003918fad6cd8c0d4433f7c (diff)
downloadPeerTube-1b5b10d13152d704d2396a1e53d56aba1a8e7e03.tar.gz
PeerTube-1b5b10d13152d704d2396a1e53d56aba1a8e7e03.tar.zst
PeerTube-1b5b10d13152d704d2396a1e53d56aba1a8e7e03.zip
Fix activitypub check headers
Diffstat (limited to 'server/middlewares/activitypub.ts')
-rw-r--r--server/middlewares/activitypub.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/activitypub.ts b/server/middlewares/activitypub.ts
index 7db84de97..485645720 100644
--- a/server/middlewares/activitypub.ts
+++ b/server/middlewares/activitypub.ts
@@ -37,7 +37,7 @@ async function checkSignature (req: Request, res: Response, next: NextFunction)
37 37
38function executeIfActivityPub (fun: RequestHandler | RequestHandler[]) { 38function executeIfActivityPub (fun: RequestHandler | RequestHandler[]) {
39 return (req: Request, res: Response, next: NextFunction) => { 39 return (req: Request, res: Response, next: NextFunction) => {
40 if (req.accepts(ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS) === false) { 40 if (!req.accepts(ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS)) {
41 return next() 41 return next()
42 } 42 }
43 43