mirror of
https://github.com/versia-pub/api.git
synced 2026-03-13 04:09:15 +01:00
feat(federation): ✨ Add new RequestParserHandler to less verbosely handle body parsing
This commit is contained in:
parent
8860d09eb4
commit
09a9f0bbf5
6 changed files with 541 additions and 316 deletions
|
|
@ -321,9 +321,7 @@ export class SignatureConstructor {
|
|||
}\n` +
|
||||
`host: ${url.host}\n` +
|
||||
`date: ${finalDate}\n` +
|
||||
`digest: SHA-256=${Buffer.from(new Uint8Array(digest)).toString(
|
||||
"base64",
|
||||
)}\n`;
|
||||
`digest: SHA-256=${Buffer.from(digest).toString("base64")}\n`;
|
||||
|
||||
const signature = await crypto.subtle.sign(
|
||||
"Ed25519",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue