1
0
mirror of https://github.com/labstack/echo.git synced 2025-12-07 23:12:43 +02:00

param wildcard capture fixed to *

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-10-10 18:36:48 -07:00
parent 8623669cbc
commit 2eb87f8036
4 changed files with 6 additions and 6 deletions

View File

@@ -382,7 +382,7 @@ func (e *Echo) Match(methods []string, path string, handler HandlerFunc, middlew
// provided root directory.
func (e *Echo) Static(prefix, root string) {
e.GET(prefix+"*", func(c Context) error {
return c.File(path.Join(root, c.Param("_*")))
return c.File(path.Join(root, c.Param("*")))
})
}