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 {
|
headers {
|
||||||
appendAll(headers)
|
appendAll(headers)
|
||||||
append("Signature", sign.signatureHeader)
|
append("Signature", sign.signatureHeader)
|
||||||
remove("Host")
|
// remove("Host")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
contentType(Activity)
|
contentType(Activity)
|
||||||
|
@ -173,7 +173,7 @@ class APRequestServiceImpl(
|
||||||
append("Accept", Activity)
|
append("Accept", Activity)
|
||||||
append("Date", date)
|
append("Date", date)
|
||||||
append("Host", u.host)
|
append("Host", u.host)
|
||||||
append("Digest", "sha-256=$digest")
|
append("Digest", "SHA-256=$digest")
|
||||||
}
|
}
|
||||||
|
|
||||||
val sign = httpSignatureSigner.sign(
|
val sign = httpSignatureSigner.sign(
|
||||||
|
@ -193,7 +193,7 @@ class APRequestServiceImpl(
|
||||||
headers {
|
headers {
|
||||||
appendAll(headers)
|
appendAll(headers)
|
||||||
append("Signature", sign.signatureHeader)
|
append("Signature", sign.signatureHeader)
|
||||||
remove("Host")
|
// remove("Host")
|
||||||
}
|
}
|
||||||
setBody(requestBody)
|
setBody(requestBody)
|
||||||
contentType(Activity)
|
contentType(Activity)
|
||||||
|
|
Loading…
Reference in New Issue