fix: Signatureヘッダーを少し新しい仕様に準拠するように変更

This commit is contained in:
usbharu 2023-04-29 16:04:17 +09:00
parent 08f45e1a8e
commit 28a543166a
1 changed files with 5 additions and 0 deletions

View File

@ -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)
}
}