aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-24 11:38:35 +0100
committerChocobozzz <me@florianbigard.com>2020-01-24 11:38:35 +0100
commit99849607a67ff8dd3bef75b347ce39716e46f090 (patch)
tree46508d0d538ccaca9157b6a0ca9204b654c9a587 /server
parent44d4ee4fcb7cf8beebac73f85693c09919b91e66 (diff)
downloadPeerTube-99849607a67ff8dd3bef75b347ce39716e46f090.tar.gz
PeerTube-99849607a67ff8dd3bef75b347ce39716e46f090.tar.zst
PeerTube-99849607a67ff8dd3bef75b347ce39716e46f090.zip
Remove debug messages
Diffstat (limited to 'server')
-rw-r--r--server/lib/job-queue/handlers/activitypub-http-unicast.ts2
-rw-r--r--server/middlewares/activitypub.ts1
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