Browse Source

Fix content type mismatch for Pleroma

pull/59/head
umonaca 12 months ago
parent
commit
2ce39c7e65
  1. 4
      routes/inbox.js
  2. 4
      updateFeeds.js

4
routes/inbox.js

@ -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,

4
updateFeeds.js

@ -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,

Loading…
Cancel
Save