fix: Signatureヘッダーを修正

This commit is contained in:
usbharu 2023-03-31 12:40:20 +09:00
parent 72ce47b268
commit eacb93532b
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class ActivityPubUserService(
val inboxUrl = person.inbox ?: throw IllegalArgumentException("inbox is not found")
httpClient.post(inboxUrl) {
contentType(ContentType.Application.Activity)
header("Signature","keyId=\"${person.preferredUsername}\",algorithm=\"rsa-sha256\",headers=\"(request-target) host date\"")
header("Signature","keyId=\"${person.preferredUsername}\",algorithm=\"rsa-sha256\",headers=\"(request-target) digest date\"")
setBody(Accept(
name = "Follow",
`object` = follow,