1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Avoid making retried requests to dead followers

This commit is contained in:
Chocobozzz 2018-01-12 10:02:11 +01:00
parent 9a8cbd8278
commit 6502c3d43e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 44 additions and 3 deletions

View file

@ -35,7 +35,6 @@ async function checkSignature (req: Request, res: Response, next: NextFunction)
function executeIfActivityPub (fun: RequestHandler | RequestHandler[]) {
return (req: Request, res: Response, next: NextFunction) => {
const accepted = req.accepts(ACCEPT_HEADERS)
console.log(accepted)
if (accepted === false || ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS.indexOf(accepted) === -1) {
return next()
}