mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
don't create a new controller instance if it doesn't have struct dependencies and the fields length is 0 - 0.4MB/s difference from the raw handlers now.
Former-commit-id: f808291fe84bc2cdd83f60f62f8b3140204110a5
This commit is contained in:
@@ -231,7 +231,7 @@ func (p *methodParser) parsePathParam(path string, w string, funcArgPos int) (st
|
||||
// so retry with the "funcArgPos" incremented.
|
||||
//
|
||||
// the "funcArgPos" will be updated to the caller as well
|
||||
// because we return it as well.
|
||||
// because we return it among the path and the error.
|
||||
return p.parsePathParam(path, w, funcArgPos+1)
|
||||
}
|
||||
return "", 0, errors.New("invalid syntax for " + p.fn.Name)
|
||||
|
||||
Reference in New Issue
Block a user