mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
parent
477d8dc708
commit
b2430fc4a8
5
echo.go
5
echo.go
@ -518,7 +518,10 @@ func (e *Echo) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
// Middleware
|
// Middleware
|
||||||
h := func(c Context) error {
|
h := func(c Context) error {
|
||||||
method := r.Method
|
method := r.Method
|
||||||
path := r.URL.EscapedPath()
|
path := r.URL.RawPath
|
||||||
|
if path == "" {
|
||||||
|
path = r.URL.Path
|
||||||
|
}
|
||||||
e.router.Find(method, path, c)
|
e.router.Find(method, path, c)
|
||||||
h := c.Handler()
|
h := c.Handler()
|
||||||
for i := len(e.middleware) - 1; i >= 0; i-- {
|
for i := len(e.middleware) - 1; i >= 0; i-- {
|
||||||
|
Loading…
Reference in New Issue
Block a user