fix: Signatureヘッダーの形式を変更

This commit is contained in:
usbharu 2023-04-29 17:01:02 +09:00
parent 4a689901d9
commit 7b45451dca
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ val httpSignaturePlugin = createClientPlugin("HttpSign", ::HttpSignaturePluginCo
val signatureHeader = request.headers.getAll("Signature").orEmpty()
request.headers.remove("Signature")
signatureHeader.map { it.replace("; ",",").replace(";",",") }.forEach { request.header("Signature", it) }
signatureHeader.map { it.replace("; ",",").replace(";",",") }.joinToString().let { request.header("Signature", it)}
}
}