2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Improving examples

This commit is contained in:
mzabriskie
2015-04-08 13:24:43 -06:00
parent 8a4e502e3a
commit 4ad5438f61
12 changed files with 245 additions and 16 deletions
+13
View File
@@ -0,0 +1,13 @@
module.exports = function (req, res) {
var data = '';
req.on('data', function (chunk) {
data += chunk;
});
req.on('end', function () {
console.log('File uploaded');
res.writeHead(200);
res.end();
});
};