feature(put) add getBody

This commit is contained in:
coderaiser 2014-03-05 07:21:50 -05:00
parent c8ccbaade9
commit a87618c4e5

View file

@ -80,4 +80,17 @@
break;
}
}
function getBody(req, callback) {
var body = '';
req.on('data', function(chunk) {
body += chunk + '';
});
req.on('end', function() {
Util.exec(callback, body);
});
}
})();