mirror of https://github.com/gofiber/fiber.git
update code to return prefix on empty path
parent
0fed63deb3
commit
71e4485c22
|
@ -208,11 +208,11 @@ func setETag(c *Ctx, weak bool) {
|
|||
}
|
||||
|
||||
func getGroupPath(prefix, path string) string {
|
||||
if path == "/" {
|
||||
if len(path) == 0 || path == "/" {
|
||||
return prefix
|
||||
}
|
||||
|
||||
if len(path) > 0 && path[0] != '/' {
|
||||
if path[0] != '/' {
|
||||
path = "/" + path
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue