8000 [Bug] Mixed params and exact paths can cause a 404 · Issue #2682 · gin-gonic/gin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug] Mixed params and exact paths can cause a 404  #2682
Closed
@rw-access

Description

@rw-access
Router1 "/get/test/abc/"
Router2 "/get/:param/abc/"

I tests these two routers with some requests:
/get/test/abc/ -> Router1
/get/xyz/abc/ -> Router2
/get/tt/abc/ -> 404(Expect Router2)
So, if there are some param starts with the prefix 't' in this example, it will not get the right router.

Originally posted by @Tevic in #2663 (comment)

Metadata

Metadata

Assignees

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

    0