Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route with static and match-any for a path, always goes to match-any handler. #207

Closed
vishr opened this issue Sep 16, 2015 · 0 comments
Closed
Assignees
Labels

Comments

@vishr
Copy link
Member

vishr commented Sep 16, 2015

e := echo.New()
e.Get("/", func(c *echo.Context) error {
    return c.String(200, "/")
})
e.Get("/*", func(c *echo.Context) error {
    return c.String(200, "/*")
})
e.Run(":1234")

GET / return /* (It should return /)
GET /users returns /*

@vishr vishr added the bug label Sep 16, 2015
@vishr vishr self-assigned this Sep 16, 2015
@vishr vishr changed the title Route with static and match-any for root, always goes to match-any handler. Route with static and match-any for root path, always goes to match-any handler. Sep 16, 2015
@vishr vishr changed the title Route with static and match-any for root path, always goes to match-any handler. Route with static and match-any for a path, always goes to match-any handler. Sep 17, 2015
vishr added a commit that referenced this issue Sep 17, 2015
Signed-off-by: Vishal Rana <vr@labstack.com>
@vishr vishr closed this as completed in 853e650 Sep 17, 2015
vishr added a commit that referenced this issue Sep 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant