Skip to content

[BUG][nodejs-express-server] WHATWG urlencoding #7944

Open
@NathanHazout

Description

@NathanHazout

I am using got to make requested to my server, and when passing the query parameter $.phoneNumber[*], the server rejects the request.

got follows WHATWG and encodes the parameter as %24.phoneNumber%5B*%5D. (notice the * character)

If I manually encode it to %24.phoneNumber%5B%2A%5D instead, it works.

Not sure who's in the "right" here, but this incompatibility is problematic ...

See sindresorhus/got#1524

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions