From 0fec55a3aea90925b56ec1389ae1a4f42fd35da8 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Wed, 23 Aug 2023 14:18:12 -0700 Subject: [PATCH] refactor: explicitly copy headers to custom fetcher --- src/client/links.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/links.ts b/src/client/links.ts index a370bdb..db177b7 100644 --- a/src/client/links.ts +++ b/src/client/links.ts @@ -15,6 +15,7 @@ function customFetch(input: RequestInfo | URL, init?: RequestInit & { method: 'G }) .then(response => ({ ...response, + headers: response.headers, json: () => Promise.resolve(response._data) })) }