mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(federation): 🚑 Fix broken inbound federation and add end-to-end testing for federation
This commit is contained in:
parent
85ef96fc7f
commit
8ae4f3815a
9 changed files with 192 additions and 29 deletions
|
|
@ -28,7 +28,7 @@ export const sign = async (
|
|||
const body = await req.clone().text();
|
||||
const url = new URL(req.url);
|
||||
|
||||
const digest = stringToBase64Hash(body);
|
||||
const digest = await stringToBase64Hash(body);
|
||||
const timestampSecs = Math.floor(timestamp.getTime() / 1000);
|
||||
|
||||
const signedString = `${req.method.toLowerCase()} ${encodeURI(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue