From 7915189163b31949a53c765fb41e4fba7df12c14 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sat, 29 Apr 2023 16:04:17 +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=E5=B0=91=E3=81=97=E6=96=B0=E3=81=97=E3=81=84?= =?UTF-8?q?=E4=BB=95=E6=A7=98=E3=81=AB=E6=BA=96=E6=8B=A0=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt b/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt index c76d52e0..ffdaaf21 100644 --- a/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt +++ b/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt @@ -149,6 +149,11 @@ val httpSignaturePlugin = createClientPlugin("HttpSign", ::HttpSignaturePluginCo }) + + val signatureHeader = request.headers.get("Signature") + val replace = signatureHeader?.replace("; ", ",")?.replace(";",",") + request.headers.remove("Signature") + request.header("Signature", replace) } }