Skip to content

Request data lost using "normal express middleware" #188

Open
@jonball4

Description

@jonball4

Middleware that modifies req (normal express middleware) runs, and modifies req, but the modified req never gets to the handler, only the empty middleware output.

Middleware that returns data, works fine.

Referencing the only test for the normal express middleware here since it's a no-op and never changed the request data:

const noopMiddleware: express.RequestHandler = (_req, _res, next) => {

The test should be enhanced to cover a realistic use case, which would have highlighted this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions