mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(put) add getBody
This commit is contained in:
parent
c8ccbaade9
commit
a87618c4e5
1 changed files with 13 additions and 0 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue