send
send copied to clipboard
[fix] await send() never resolves if file is not found
Describe the bug
using this example code: await send(ctx, ctx.path, { root: __dirname + '/public' }); If the file is not found, the promise never resolves. This is a memory leak.
Node.js version:
OS version:
Description:
Actual behavior
Expected behavior
Code to reproduce
Checklist
- [ ] I have searched through GitHub issues for similar issues.
- [ ] I have completely read through the README and documentation.
- [ ] I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.
Hi! It rejects, isn't it ?
@TheDirigible the problem is solved?