mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-21 11:52:01 +01:00
fix: return digest header only if it is set to something (aka not null)
This commit is contained in:
@@ -229,7 +229,7 @@ ActivityPub.sign = async ({ key, keyId }, url, payload) => {
|
||||
// Construct signature header
|
||||
return {
|
||||
date,
|
||||
digest,
|
||||
...(digest && { digest }),
|
||||
signature: `keyId="${keyId}",headers="${headers}",signature="${signature}",algorithm="hs2019"`,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user