diff options
-rw-r--r-- | server/lib/job-queue/handlers/activitypub-http-unicast.ts | 2 | ||||
-rw-r--r-- | server/middlewares/activitypub.ts | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/server/lib/job-queue/handlers/activitypub-http-unicast.ts b/server/lib/job-queue/handlers/activitypub-http-unicast.ts index 6fbd4a716..c70ce3be9 100644 --- a/server/lib/job-queue/handlers/activitypub-http-unicast.ts +++ b/server/lib/job-queue/handlers/activitypub-http-unicast.ts | |||
@@ -20,8 +20,6 @@ async function processActivityPubHttpUnicast (job: Bull.Job) { | |||
20 | const body = await computeBody(payload) | 20 | const body = await computeBody(payload) |
21 | const httpSignatureOptions = await buildSignedRequestOptions(payload) | 21 | const httpSignatureOptions = await buildSignedRequestOptions(payload) |
22 | 22 | ||
23 | logger.info('hello', { httpSignatureOptions }) | ||
24 | |||
25 | const options = { | 23 | const options = { |
26 | method: 'POST', | 24 | method: 'POST', |
27 | uri, | 25 | uri, |
diff --git a/server/middlewares/activitypub.ts b/server/middlewares/activitypub.ts index bd3bdb076..c6d8466ac 100644 --- a/server/middlewares/activitypub.ts +++ b/server/middlewares/activitypub.ts | |||
@@ -55,7 +55,6 @@ 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 ') === true) req.headers[HTTP_SIGNATURE.HEADER_NAME] = sig.replace(/^Signature /, '') | 56 | if (sig && sig.startsWith('Signature ') === true) req.headers[HTTP_SIGNATURE.HEADER_NAME] = sig.replace(/^Signature /, '') |
57 | 57 | ||
58 | logger.info('coucou', { signature: req.headers[HTTP_SIGNATURE.HEADER_NAME] }) | ||
59 | const parsed = parseHTTPSignature(req, HTTP_SIGNATURE.CLOCK_SKEW_SECONDS) | 58 | const parsed = parseHTTPSignature(req, HTTP_SIGNATURE.CLOCK_SKEW_SECONDS) |
60 | 59 | ||
61 | const keyId = parsed.keyId | 60 | const keyId = parsed.keyId |