From 35d47b204a8c3a895894fee118598a6fcb733ae8 Mon Sep 17 00:00:00 2001 From: yaohuom Date: Thu, 6 Aug 2020 00:16:23 +0800 Subject: [PATCH] Fix the X-Signature format to original cqhttp --- src/main/kotlin/tech/mihoyo/mirai/web/http/ReportService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/tech/mihoyo/mirai/web/http/ReportService.kt b/src/main/kotlin/tech/mihoyo/mirai/web/http/ReportService.kt index 61a320c..462a7f7 100644 --- a/src/main/kotlin/tech/mihoyo/mirai/web/http/ReportService.kt +++ b/src/main/kotlin/tech/mihoyo/mirai/web/http/ReportService.kt @@ -144,7 +144,7 @@ class ReportService( private fun getSha1Hash(botId: Long, content: String): String { sha1UtilByBot[botId]?.apply { - return this.doFinal(content.toByteArray()).fold("", { str, it -> str + "%02x".format(it) }) + return "sha1=" + this.doFinal(content.toByteArray()).fold("", { str, it -> str + "%02x".format(it) }) } return "" }