From b3002625a48a56bf78dec7e997143df2bb451dce Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Thu, 7 Dec 2023 01:10:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Misskey=E3=81=AE=E8=84=86=E5=BC=B1?= =?UTF-8?q?=E6=80=A7=E4=BF=AE=E6=AD=A3=E3=81=A7HTTP=20Signature=E3=81=AE?= =?UTF-8?q?=E6=A4=9C=E8=A8=BC=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=8C=E5=87=BA?= =?UTF-8?q?=E3=81=A6=E9=80=A3=E5=90=88=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=8F?= =?UTF-8?q?=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activitypub/service/common/APRequestServiceImpl.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/activitypub/service/common/APRequestServiceImpl.kt b/src/main/kotlin/dev/usbharu/hideout/activitypub/service/common/APRequestServiceImpl.kt index 511d3e67..9721cf38 100644 --- a/src/main/kotlin/dev/usbharu/hideout/activitypub/service/common/APRequestServiceImpl.kt +++ b/src/main/kotlin/dev/usbharu/hideout/activitypub/service/common/APRequestServiceImpl.kt @@ -84,7 +84,7 @@ class APRequestServiceImpl( headers { appendAll(headers) append("Signature", sign.signatureHeader) - remove("Host") +// remove("Host") } } contentType(Activity) @@ -173,7 +173,7 @@ class APRequestServiceImpl( append("Accept", Activity) append("Date", date) append("Host", u.host) - append("Digest", "sha-256=$digest") + append("Digest", "SHA-256=$digest") } val sign = httpSignatureSigner.sign( @@ -193,7 +193,7 @@ class APRequestServiceImpl( headers { appendAll(headers) append("Signature", sign.signatureHeader) - remove("Host") +// remove("Host") } setBody(requestBody) contentType(Activity)