Skip to content

request help: Parameters in path don't work as expected #2008

Description

@Gary-Airwallex

Issue description

Parameters in path as described here api7/lua-resty-radixtree#37 don't seem to work as expected.
For example I would expect request "/foo/1/bar" to be accepted by route with "uri": "/foo/:id/bar", and request "/foo/bar" rejected. It turns out both requests are matched by the route, like if the colon is functioning as the "*"

Environment

  • apisix version (cmd: apisix version): 1.5
  • OS: osx

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions