mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
Minor syntax fixes (#1994)
This commit is contained in:
parent
eb371a9e64
commit
f3865f9aa5
2
echo.go
2
echo.go
@ -654,7 +654,7 @@ func (e *Echo) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
// Acquire context
|
// Acquire context
|
||||||
c := e.pool.Get().(*context)
|
c := e.pool.Get().(*context)
|
||||||
c.Reset(r, w)
|
c.Reset(r, w)
|
||||||
h := NotFoundHandler
|
var h func(Context) error
|
||||||
|
|
||||||
if e.premiddleware == nil {
|
if e.premiddleware == nil {
|
||||||
e.findRouter(r.Host).Find(r.Method, GetPath(r), c)
|
e.findRouter(r.Host).Find(r.Method, GetPath(r), c)
|
||||||
|
Loading…
Reference in New Issue
Block a user