-
-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Hi!
I have to pass via a formData for a specific API endpoint.
My problem is :
- https://github.com/elysiajs/eden/blob/main/src/fetch/index.ts#L21-L26 : body is stringified automatically if no
content-type
is provided - https://github.com/elysiajs/eden/blob/main/src/fetch/index.ts#L37-L42 : There's no way to remove completely
content-type
from headers preventing from browser to handle multipart correctly (https://stackoverflow.com/a/39281156) - https://github.com/elysiajs/eden/blob/main/src/fetch/index.ts#L39
content-type
should be spelled asContent-Type
, if you want to override thecontent-type
then it will be parsed as JSON because of a different case here https://github.com/elysiajs/eden/blob/main/src/fetch/index.ts#L19
I can open a PR if you want but removing the first might be a breaking change that's why I've open an issue first :D
VaronLaStrauss and flagg2
Metadata
Metadata
Assignees
Labels
No labels