Skip to content

Commit

Permalink
fix func(Context) error to HandlerFunc
Browse files Browse the repository at this point in the history
  • Loading branch information
lkeix authored and aldas committed Nov 12, 2022
1 parent 35184a8 commit a97d4bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echo.go
Expand Up @@ -626,7 +626,7 @@ func (e *Echo) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Acquire context
c := e.pool.Get().(*context)
c.Reset(r, w)
var h func(Context) error
var h HandlerFunc

if e.premiddleware == nil {
e.findRouter(r.Host).Find(r.Method, GetPath(r), c)
Expand Down

0 comments on commit a97d4bf

Please sign in to comment.