From 63d812ce35866bb1004741c5c3d18cea451605fd Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Fri, 31 Mar 2023 13:58:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20signature=E3=83=98=E3=83=83=E3=83=80?= =?UTF-8?q?=E3=83=BC=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt b/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt index 17a9530e..ec3159a4 100644 --- a/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt +++ b/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt @@ -122,7 +122,7 @@ val httpSignaturePlugin = createClientPlugin("HttpSign", ::HttpSignaturePluginCo } override fun addHeader(name: String?, value: String?) { - name?.let { request.header(it, value) } + name?.let { request.header(it, "\"${value?.trim(',')}\"") } } override fun method(): String { @@ -135,7 +135,6 @@ val httpSignaturePlugin = createClientPlugin("HttpSign", ::HttpSignaturePluginCo }) - } }