1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

rename tarball from uplink when download is finished

closes #11
This commit is contained in:
Alex Kocharin 2013-10-05 18:26:51 +04:00
parent 2f15d1c0fa
commit 8dcb735626

@ -266,6 +266,9 @@ Storage.prototype.get_tarball = function(name, filename) {
savestream.abort();
stream.emit('error', err);
});
rstream2.on('end', function() {
savestream.done();
});
// XXX: check, what would happen if client disconnects?
rstream2.pipe(stream);