updated node to 12
This commit is contained in:
parent
01110b4ec1
commit
89469e3c9c
5 changed files with 4646 additions and 6988 deletions
|
@ -10,7 +10,7 @@ module.exports = async function(req, res) {
|
|||
const fileStream = await storage.get(id);
|
||||
let cancelled = false;
|
||||
|
||||
req.on('close', () => {
|
||||
req.on('aborted', () => {
|
||||
cancelled = true;
|
||||
fileStream.destroy();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue