mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(federation): 🐛 Hopefully fix the Great Signature Bug
This commit is contained in:
parent
75043bae15
commit
241ad8232d
|
|
@ -168,14 +168,17 @@ export default (app: Hono) =>
|
||||||
|
|
||||||
const isValid = await validator
|
const isValid = await validator
|
||||||
.validate(
|
.validate(
|
||||||
signature,
|
new Request(reqUrl, {
|
||||||
new Date(Date.parse(date)),
|
method: context.req.method,
|
||||||
context.req.method as HttpVerb,
|
headers: {
|
||||||
reqUrl,
|
Signature: signature,
|
||||||
await context.req.text(),
|
Date: date,
|
||||||
|
},
|
||||||
|
body: await context.req.text(),
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
dualLogger.logError(
|
new LogManager(Bun.stdout).logError(
|
||||||
LogLevel.ERROR,
|
LogLevel.ERROR,
|
||||||
"Inbox.Signature",
|
"Inbox.Signature",
|
||||||
e as Error,
|
e as Error,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue