summary refs log tree commit diff
path: root/src/activitypub/federation/HttpSig.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-09-29 02:35:56 +0000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-09-29 02:35:56 +0000
commit08bcadb998ff06cb86d07a5eaed645ddc0e805cb (patch)
tree6d5f3a94b7b5eec84a9d8381e51ce6c97c2a43a1 /src/activitypub/federation/HttpSig.ts
parentupdate activitypub-types package (diff)
downloadserver-08bcadb998ff06cb86d07a5eaed645ddc0e805cb.tar.xz
Fix HttpSig.sign modifying fetchOpts
Diffstat (limited to '')
-rw-r--r--src/activitypub/federation/HttpSig.ts2
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: {