0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

rename tarball from uplink when download is finished

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

View file

@ -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);