From 468b318daa50199c57bb47a847bc143db6196159 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sat, 14 Oct 2023 10:10:21 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20HttpSignatureSignerImpl=E3=82=92?= =?UTF-8?q?=E3=83=AA=E3=83=95=E3=82=A1=E3=82=AF=E3=82=BF=E3=83=AA=E3=83=B3?= =?UTF-8?q?=E3=82=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hideout/service/signature/HttpSignatureSignerImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/service/signature/HttpSignatureSignerImpl.kt b/src/main/kotlin/dev/usbharu/hideout/service/signature/HttpSignatureSignerImpl.kt index c85d6705..d4b7d893 100644 --- a/src/main/kotlin/dev/usbharu/hideout/service/signature/HttpSignatureSignerImpl.kt +++ b/src/main/kotlin/dev/usbharu/hideout/service/signature/HttpSignatureSignerImpl.kt @@ -55,13 +55,13 @@ class HttpSignatureSignerImpl : HttpSignatureSigner { signHeaders: List ): String { headers.toMap().map { it.key.lowercase() to it.value }.toMap() - val result = signHeaders.map { + val result = signHeaders.joinToString("\n") { if (it.startsWith("(")) { specialHeader(it, url, method) } else { generalHeader(it, headers.get(it)!!) } - }.joinToString("\n") + } return result }