1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

Update slash.go

This commit is contained in:
Vishal Rana 2015-05-13 23:09:02 -07:00
parent 54cad1ff14
commit 58ed17d35e

View File

@ -15,7 +15,7 @@ func StripTrailingSlash() echo.HandlerFunc {
}
// RedirectToSlash redirects requests without trailing slash path to trailing slash
// path with status code.
// path, with status code.
func RedirectToSlash(code int) echo.HandlerFunc {
return func(c *echo.Context) (he *echo.HTTPError) {
p := c.Request.URL.Path