mirror of https://github.com/usbharu/Hideout.git
fix: Misskeyの脆弱性修正でHTTP Signatureの検証エラーが出て連合できなくなっていた問題を修正
This commit is contained in:
parent
06561569ab
commit
b3002625a4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue