Skip to content

ctx.query is not a plain object while ctx.params and ctx.request.body is #1472

@raphaelsoul

Description

@raphaelsoul

image

As screenshot shows that ctx.query has no method hasOwnProperty from prototype

Which causes some package depends on ctx.query.hasOwnProperty calling an undefined method.

I am using koa@2.11.0

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