mirror of
https://github.com/dariusk/rss-to-activitypub.git
synced 2024-11-23 01:39:19 +02:00
Fix content type mismatch for Pleroma
This commit is contained in:
parent
d7a3f8b765
commit
2ce39c7e65
|
@ -38,7 +38,9 @@ function signAndSend(message, name, domain, req, res, targetDomain) {
|
||||||
'Host': targetDomain,
|
'Host': targetDomain,
|
||||||
'Date': d.toUTCString(),
|
'Date': d.toUTCString(),
|
||||||
'Signature': header,
|
'Signature': header,
|
||||||
'Digest': `SHA-256=${digest}`
|
'Digest': `SHA-256=${digest}`,
|
||||||
|
'Content-Type': 'application/activity+json',
|
||||||
|
'Accept': 'application/activity+json'
|
||||||
},
|
},
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
json: true,
|
json: true,
|
||||||
|
|
|
@ -191,7 +191,9 @@ function signAndSend(message, name, domain, req, res, targetDomain, inbox) {
|
||||||
'Host': targetDomain,
|
'Host': targetDomain,
|
||||||
'Date': d.toUTCString(),
|
'Date': d.toUTCString(),
|
||||||
'Signature': header,
|
'Signature': header,
|
||||||
'Digest': `SHA-256=${digest}`
|
'Digest': `SHA-256=${digest}`,
|
||||||
|
'Content-Type': 'application/activity+json',
|
||||||
|
'Accept': 'application/activity+json'
|
||||||
},
|
},
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
json: true,
|
json: true,
|
||||||
|
|
Loading…
Reference in New Issue