platform agnostic change

This commit is contained in:
claire treise 2026-03-16 22:52:14 +01:00
parent 0065861eab
commit eb7b1cf026

View file

@ -173,7 +173,7 @@ func main() {
} }
// serve index.html if present (case-sensitive) // 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() { if indexInfo, err := os.Stat(indexPath); err == nil && !indexInfo.IsDir() {
http.ServeFile(w, r, indexPath) http.ServeFile(w, r, indexPath)
return return