diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-09-29 02:35:56 +0000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-09-29 02:35:56 +0000 |
commit | 08bcadb998ff06cb86d07a5eaed645ddc0e805cb (patch) | |
tree | 6d5f3a94b7b5eec84a9d8381e51ce6c97c2a43a1 /src/activitypub/federation/HttpSig.ts | |
parent | update activitypub-types package (diff) | |
download | server-08bcadb998ff06cb86d07a5eaed645ddc0e805cb.tar.xz |
Fix HttpSig.sign modifying fetchOpts
Diffstat (limited to '')
-rw-r--r-- | src/activitypub/federation/HttpSig.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activitypub/federation/HttpSig.ts b/src/activitypub/federation/HttpSig.ts index ce34b98e..15eabffe 100644 --- a/src/activitypub/federation/HttpSig.ts +++ b/src/activitypub/federation/HttpSig.ts @@ -117,7 +117,7 @@ export class HttpSig { `headers="(request-target) host date digest",` + `signature=${sig_b64}`; - return OrmUtils.mergeDeep(fetchOpts, { + return OrmUtils.mergeDeep({}, fetchOpts, { method: "POST", body: JSON.stringify(message), headers: { |