From da25fd21ea542cd4575128f9be98001018ce2acc Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 16 Jul 2024 11:36:39 -0400 Subject: [PATCH] feat: activitypub.get; allow the passing-in of custom headers via existing `options` parameter --- src/activitypub/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/activitypub/index.js b/src/activitypub/index.js index 8854e26edf..1d37f2f546 100644 --- a/src/activitypub/index.js +++ b/src/activitypub/index.js @@ -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,