From 122076e8eaa5517ee3fab6caacd0d12e61654125 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 15 Aug 2020 04:27:19 +0900 Subject: [PATCH] Sign (request-target) Fix #6652 (#6656) --- src/remote/activitypub/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/activitypub/request.ts b/src/remote/activitypub/request.ts index ab3ae025a5..ab51fdd93c 100644 --- a/src/remote/activitypub/request.ts +++ b/src/remote/activitypub/request.ts @@ -49,7 +49,7 @@ export default async (user: ILocalUser, url: string, object: any) => { authorizationHeaderName: 'Signature', key: keypair.privateKey, keyId: `${config.url}/users/${user.id}#main-key`, - headers: ['date', 'host', 'digest'] + headers: ['(request-target)', 'date', 'host', 'digest'] }); req.on('timeout', () => req.abort());