1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-05 00:58:47 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2017-01-31 13:55:39 -08:00
parent 52fa135fd5
commit c7c4395fbd
3 changed files with 11 additions and 10 deletions

View File

@ -297,6 +297,7 @@ func (n *node) checkMethodNotAllowed() HandlerFunc {
// - Reset it `Context#Reset()`
// - Return it `Echo#ReleaseContext()`.
func (r *Router) Find(method, path string, context Context) {
context.SetPath(path)
cn := r.tree // Current node as root
var (