-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
middleware echo.Context Lost Path
v4.9.1 is correct
v4.10.2 is not correct;
Expected behaviour
c.Path() Get correct request Path
Actual behaviour
c.Path() Get ""
Steps to reproduce
see example code
Working code to debug
func Middleware(m *core.Mgr) echo.MiddlewareFunc {
return func(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
// c.Path() is ""
if c.Path() != m.GetPath() {
return next(c)
}
//do some else
}
}
}