refactor: explicitly copy headers to custom fetcher

This commit is contained in:
wobsoriano
2023-08-23 14:18:12 -07:00
parent 8f9e398ae2
commit 0fec55a3ae

View File

@@ -15,6 +15,7 @@ function customFetch(input: RequestInfo | URL, init?: RequestInit & { method: 'G
})
.then(response => ({
...response,
headers: response.headers,
json: () => Promise.resolve(response._data)
}))
}