Skip to content

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

Description

@TheDirigible

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions