Skip to content

Different route param parsing behavior between POST and GET requests #6816

@yinpeng-sigma

Description

@yinpeng-sigma

Trying to adopt https://google.aip.dev/136 and use :customMethod to model non-standard operations.

The path definition I'm using is /books/:bookId\\:upVote.

The path params captured by express is different in POST and GET requests: in POST requests the :upVote postfix is correctly excluded from the bookId param, but in GET requests the :upVote is included in the bookId param captured.

Wondering why is this? And is this behavior something I can depend on?

express version: 4.21.0

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions