diff --git a/main.go b/main.go index 78c8271..890efa7 100755 --- a/main.go +++ b/main.go @@ -173,7 +173,7 @@ func main() { } // serve index.html if present (case-sensitive) - indexPath := fpath + "/index.html" + indexPath := filepath.Join(fpath, "index.html") if indexInfo, err := os.Stat(indexPath); err == nil && !indexInfo.IsDir() { http.ServeFile(w, r, indexPath) return