1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-23 20:03:43 +00:00

Merge pull request #1093 from sujit-baniya/master

[Bug] - Add length check for path
This commit is contained in:
kiyon 2020-12-28 13:10:25 +08:00 committed by GitHub
commit d2561560a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,7 +208,7 @@ func setETag(c *Ctx, weak bool) {
}
func getGroupPath(prefix, path string) string {
if path == "/" {
if len(path) == 0 || path == "/" {
return prefix
}