Fix http signature key url

This commit is contained in:
Chocobozzz 2025-01-13 09:11:11 +01:00
parent 8cf737fc31
commit 038c410308
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 2 deletions

View File

@ -57,11 +57,10 @@ export async function buildSignedRequestOptions (options: {
actor = await getServerActor()
}
const keyId = actor.url
return {
algorithm: HTTP_SIGNATURE.ALGORITHM,
authorizationHeaderName: HTTP_SIGNATURE.HEADER_NAME,
keyId,
keyId: actor.getPublicKeyUrl(),
key: actor.privateKey,
headers: options.hasPayload
? HTTP_SIGNATURE.HEADERS_TO_SIGN_WITH_PAYLOAD