mirror of
https://github.com/axios/axios.git
synced 2026-04-12 14:41:55 +08:00
* adding toFormData test * adding toFormData * initial multipart-FormData playground * formdata playground title * Fix examples/postMultipartFormData/server.js to the examples/**/server.js format, and so event end runs. Co-authored-by: Jay <jasonsaayman@gmail.com>
14 lines
241 B
JavaScript
14 lines
241 B
JavaScript
module.exports = function (req, res) {
|
|
|
|
req.on('data', function (chunk) {
|
|
});
|
|
|
|
req.on('end', function () {
|
|
console.log('POST received');
|
|
res.writeHead(200, {
|
|
'Content-Type': 'text/json'
|
|
});
|
|
res.end();
|
|
});
|
|
};
|