fetch icon indicating copy to clipboard operation
fetch copied to clipboard

BUG while pass FormData `body` it will always into

Open tianyingchun opened this issue 2 years ago • 0 comments

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'

tianyingchun avatar Sep 22 '21 13:09 tianyingchun