mirror of https://github.com/usbharu/Hideout.git
fix: Signatureヘッダーの変更をすべてのヘッダーに適用
This commit is contained in:
parent
28a543166a
commit
d130f5c133
|
@ -150,10 +150,9 @@ val httpSignaturePlugin = createClientPlugin("HttpSign", ::HttpSignaturePluginCo
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
val signatureHeader = request.headers.get("Signature")
|
val signatureHeader = request.headers.getAll("Signature").orEmpty()
|
||||||
val replace = signatureHeader?.replace("; ", ",")?.replace(";",",")
|
|
||||||
request.headers.remove("Signature")
|
request.headers.remove("Signature")
|
||||||
request.header("Signature", replace)
|
signatureHeader.map { it.replace("; ",",").replace(";",",") }.forEach { request.header("Signature", it) }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue