Merge branch 'master' of github.com:mozilla/send into localization

This commit is contained in:
Abhinav Adduri 2017-07-19 11:35:11 -07:00
commit 902010704a
33 changed files with 246 additions and 869 deletions

View file

@ -224,6 +224,19 @@ app.post('/upload', (req, res, next) => {
});
});
});
req.on('close', err => {
storage
.forceDelete(newId)
.then(err => {
if (!err) {
log.info('Deleted:', newId);
}
})
.catch(err => {
log.info('DeleteError:', newId);
});
})
});
app.get('/__lbheartbeat__', (req, res) => {