mirror of https://github.com/gofiber/fiber.git
Check if path is empty or not
parent
6615774cb6
commit
0fed63deb3
|
@ -212,7 +212,7 @@ func getGroupPath(prefix, path string) string {
|
|||
return prefix
|
||||
}
|
||||
|
||||
if path[0] != '/' {
|
||||
if len(path) > 0 && path[0] != '/' {
|
||||
path = "/" + path
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue