diff options
Diffstat (limited to 'server/middlewares/activitypub.ts')
-rw-r--r-- | server/middlewares/activitypub.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/activitypub.ts b/server/middlewares/activitypub.ts index bea213d27..fedac0e05 100644 --- a/server/middlewares/activitypub.ts +++ b/server/middlewares/activitypub.ts | |||
@@ -55,7 +55,7 @@ async function checkHttpSignature (req: Request, res: Response) { | |||
55 | const sig = req.headers[HTTP_SIGNATURE.HEADER_NAME] as string | 55 | const sig = req.headers[HTTP_SIGNATURE.HEADER_NAME] as string |
56 | if (sig && sig.startsWith('Signature ') === false) req.headers[HTTP_SIGNATURE.HEADER_NAME] = 'Signature ' + sig | 56 | if (sig && sig.startsWith('Signature ') === false) req.headers[HTTP_SIGNATURE.HEADER_NAME] = 'Signature ' + sig |
57 | 57 | ||
58 | const parsed = parseHTTPSignature(req) | 58 | const parsed = parseHTTPSignature(req, HTTP_SIGNATURE.CLOCK_SKEW_SECONDS) |
59 | 59 | ||
60 | const keyId = parsed.keyId | 60 | const keyId = parsed.keyId |
61 | if (!keyId) { | 61 | if (!keyId) { |