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:
parent
54cad1ff14
commit
58ed17d35e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user