mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 00:18: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
|
||||
.validate(
|
||||
signature,
|
||||
new Date(Date.parse(date)),
|
||||
context.req.method as HttpVerb,
|
||||
reqUrl,
|
||||
await context.req.text(),
|
||||
new Request(reqUrl, {
|
||||
method: context.req.method,
|
||||
headers: {
|
||||
Signature: signature,
|
||||
Date: date,
|
||||
},
|
||||
body: await context.req.text(),
|
||||
}),
|
||||
)
|
||||
.catch((e) => {
|
||||
dualLogger.logError(
|
||||
new LogManager(Bun.stdout).logError(
|
||||
LogLevel.ERROR,
|
||||
"Inbox.Signature",
|
||||
e as Error,
|
||||
|
|
|
|||
Loading…
Reference in a new issue