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:
commit
d2561560a0
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user