Skip to content

koa-timeout doesn't respect status parameter #151

Description

@quarhodron

koa-timeout package doesn't respect the status parameter.

I think in this place https://github.com/uswitch/koa-core/blob/master/packages/koa-timeout/koa-timeout.js#L19 it should be ctx.status instead of 408. Additionally, it would be nice if the error message was be parameterized.

pinging the last contributor @phelma

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions