mirror of
https://github.com/labstack/echo.git
synced 2025-12-03 22:59:09 +02:00
Var args for Context#SetParamNames and Context#SetParamValues.
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
@@ -400,7 +400,7 @@ func (r *Router) Find(method, path string, context Context) {
|
||||
End:
|
||||
context.SetHandler(cn.findHandler(method))
|
||||
context.SetPath(cn.ppath)
|
||||
context.SetParamNames(cn.pnames)
|
||||
context.SetParamNames(cn.pnames...)
|
||||
|
||||
// NOTE: Slow zone...
|
||||
if context.Handler() == nil {
|
||||
@@ -417,7 +417,7 @@ End:
|
||||
context.SetHandler(cn.checkMethodNotAllowed())
|
||||
}
|
||||
context.SetPath(cn.ppath)
|
||||
context.SetParamNames(cn.pnames)
|
||||
context.SetParamNames(cn.pnames...)
|
||||
pvalues[len(cn.pnames)-1] = ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user