We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c93b58d commit e6906fcCopy full SHA for e6906fc
server/handler.go
@@ -78,6 +78,10 @@ func (h *Handler) MapDir(dirPath string) error {
78
path = strings.ReplaceAll(path, dirPath, "")
79
80
if d.IsDir() {
81
+ if !strings.HasSuffix(path, "/") && len(path) != 0 {
82
+ path = path + "/"
83
+ }
84
+
85
h.PathMap["/"+path] = dirPath + path + "index.html"
86
logger.GlobalLog.LogInfo("Mapped URI '/" + path + "index.html' to file '" + dirPath + path + "'")
87
} else {
0 commit comments