mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-20 23:05:09 +00:00
10 lines
No EOL
229 B
JavaScript
10 lines
No EOL
229 B
JavaScript
module.exports = function(res, fn){
|
|
var data = []; // Binary data needs binary storage
|
|
|
|
res.on('data', function(chunk){
|
|
data.push(chunk);
|
|
});
|
|
res.on('end', function () {
|
|
fn(null, Buffer.concat(data));
|
|
});
|
|
}; |