mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +01:00
feat: activitypub.get; allow the passing-in of custom headers via existing options parameter
This commit is contained in:
@@ -269,6 +269,7 @@ ActivityPub.get = async (type, id, uri, options) => {
|
||||
const { response, body } = await request.get(uri, {
|
||||
headers: {
|
||||
...headers,
|
||||
...options.headers,
|
||||
Accept: 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
||||
},
|
||||
timeout: 5000,
|
||||
|
||||
Reference in New Issue
Block a user