Closed
Description
Headers type is defined in three places:
- SvelteKit
- Node.js
node-fetch
We try to pass these around interchangeably, but that's almost certainly broken since it may be a string | string[]
in Node.js, but not in the other two places.
I believe that Node.js has defined headers correctly while the other two are broken. There's actually an open issue for this in the node-fetch
repo node-fetch/node-fetch#771. Unfortunately, I'm not quite sure what to do about this as long as that issue remains open
I think it's also possible that fetch
headers are different than generic request headers? In which case, maybe it's just SvelteKit that's broken and the other two are both correct
Metadata
Metadata
Assignees
Labels
No labels