2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

multipart/form-data playground (#4465)

* 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>
This commit is contained in:
Ben Carp
2022-03-15 07:53:11 +02:00
committed by GitHub
parent b736acfa19
commit 1a2ff9c3d1
2 changed files with 144 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
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();
});
};