mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-24 17:00:32 +01:00
refactor: explicitly copy headers to custom fetcher
This commit is contained in:
@@ -15,6 +15,7 @@ function customFetch(input: RequestInfo | URL, init?: RequestInit & { method: 'G
|
||||
})
|
||||
.then(response => ({
|
||||
...response,
|
||||
headers: response.headers,
|
||||
json: () => Promise.resolve(response._data)
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user