feat: activitypub.get; allow the passing-in of custom headers via existing options parameter

This commit is contained in:
Julian Lam
2024-07-16 11:36:39 -04:00
parent 26765fe9aa
commit da25fd21ea

View File

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