Skip to content

How can I prevent the upgrade? #73

@etodanik

Description

@etodanik

I'm trying to do a basic auth middleware that would prevent upgrading the HTTP request if there is some missing token in headers.

Right now this library "Swallows" all the errors. I see it emitting them in debug, but I can't handle them as part of my koa error handler.

How can I prevent the upgrade, or throw an error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions