Fix content type mismatch for Pleroma

This commit is contained in:
umonaca 2020-10-26 06:40:06 -04:00
parent d7a3f8b765
commit 2ce39c7e65
2 changed files with 6 additions and 2 deletions

View file

@ -38,7 +38,9 @@ function signAndSend(message, name, domain, req, res, targetDomain) {
'Host': targetDomain,
'Date': d.toUTCString(),
'Signature': header,
'Digest': `SHA-256=${digest}`
'Digest': `SHA-256=${digest}`,
'Content-Type': 'application/activity+json',
'Accept': 'application/activity+json'
},
method: 'POST',
json: true,

View file

@ -191,7 +191,9 @@ function signAndSend(message, name, domain, req, res, targetDomain, inbox) {
'Host': targetDomain,
'Date': d.toUTCString(),
'Signature': header,
'Digest': `SHA-256=${digest}`
'Digest': `SHA-256=${digest}`,
'Content-Type': 'application/activity+json',
'Accept': 'application/activity+json'
},
method: 'POST',
json: true,