Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

BUG while pass FormData body it will always into #59

Closed
tianyingchun opened this issue Sep 22, 2021 · 1 comment
Closed

BUG while pass FormData body it will always into #59

tianyingchun opened this issue Sep 22, 2021 · 1 comment

Comments

@tianyingchun
Copy link

while we passed FormData in server side , it will run into these code,

opts.body = JSON.stringify(opts.body);
opts.headers.set('Content-Type', 'application/json');
opts.headers.set('Content-Length', Buffer.byteLength(opts.body));

But for form-data in server side, maybe sometimes we need to passfs.createReadStream as form-data

it should not set header 'Content-Type', 'application/json'

@Ethan-Arrowood
Copy link
Collaborator

Thank you for the report. We are archiving this project; you can read more details here: #83

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants