Sign (request-target) Fix #6652 (#6656)

This commit is contained in:
MeiMei 2020-08-15 04:27:19 +09:00 committed by GitHub
parent 7c5ac2cbb4
commit 122076e8ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());