diff --git a/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt b/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt index ffdaaf21..46140f4f 100644 --- a/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt +++ b/src/main/kotlin/dev/usbharu/hideout/plugins/ActivityPub.kt @@ -150,10 +150,9 @@ val httpSignaturePlugin = createClientPlugin("HttpSign", ::HttpSignaturePluginCo }) - val signatureHeader = request.headers.get("Signature") - val replace = signatureHeader?.replace("; ", ",")?.replace(";",",") + val signatureHeader = request.headers.getAll("Signature").orEmpty() request.headers.remove("Signature") - request.header("Signature", replace) + signatureHeader.map { it.replace("; ",",").replace(";",",") }.forEach { request.header("Signature", it) } } }