1
0
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:
Vishal Rana
2016-04-17 09:41:20 -07:00
parent ce80fc8ea4
commit 1e04986e53
2 changed files with 6 additions and 6 deletions

View File

@@ -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] = ""
}