echo icon indicating copy to clipboard operation
echo copied to clipboard

Middleware chain no longer traversed if no route found

Open Nomon opened this issue 11 years ago • 1 comments

73fa05f826ca05535ee986503e6807d843684617 (https://github.com/labstack/echo/blob/master/echo.go#L323) makes ServeHTTP skip all middlewares if no matching route is found. This breaks among other things logging of 404 requests with logger middleware, also other middlewares we use like CORS/preflight for options requests do no longer work as we have no matching Options routes. Is this intended (and future) behavior to skip all the middlewares if no matching route is found or is it a bug?

Nomon avatar May 18 '15 11:05 Nomon

It's a bug.

vishr avatar May 18 '15 15:05 vishr