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

This commit is contained in:
usbharu 2023-04-29 16:04:17 +09:00
parent b72e36ba8c
commit 7915189163
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
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)
} }
} }