mirror of https://github.com/usbharu/Hideout.git
fix: Signatureヘッダーの形式を変更2
This commit is contained in:
parent
7b45451dca
commit
c644a66071
|
@ -111,9 +111,11 @@ val httpSignaturePlugin = createClientPlugin("HttpSign", ::HttpSignaturePluginCo
|
|||
"date" -> {
|
||||
"Date"
|
||||
}
|
||||
|
||||
"host" -> {
|
||||
"Host"
|
||||
}
|
||||
|
||||
else -> {
|
||||
it
|
||||
}
|
||||
|
@ -152,7 +154,8 @@ val httpSignaturePlugin = createClientPlugin("HttpSign", ::HttpSignaturePluginCo
|
|||
|
||||
val signatureHeader = request.headers.getAll("Signature").orEmpty()
|
||||
request.headers.remove("Signature")
|
||||
signatureHeader.map { it.replace("; ",",").replace(";",",") }.joinToString().let { request.header("Signature", it)}
|
||||
signatureHeader.map { it.replace("; ", ",").replace(";", ",") }.joinToString(",")
|
||||
.let { request.header("Signature", it) }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue