send icon indicating copy to clipboard operation
send copied to clipboard

[fix] await send() never resolves if file is not found

Open TheDirigible opened this issue 2 years ago • 2 comments

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.

TheDirigible avatar Jul 10 '22 02:07 TheDirigible

Hi! It rejects, isn't it ?

houd1ni avatar Feb 25 '23 02:02 houd1ni

@TheDirigible the problem is solved?

etroynov avatar Sep 09 '23 22:09 etroynov