Compare commits

..

No commits in common. "1cd15d51e4a628c2f792e5df0c1c0e0ae75b4ab9" and "9333574de256a953bdec8f8eb107a220878aef1f" have entirely different histories.

View file

@ -174,7 +174,7 @@ func main() {
// serve index.html if present (case-sensitive)
indexPath := filepath.Join(fpath, "index.html")
if indexInfo, err := os.Stat(indexPath); err == nil && !indexInfo.IsDir() {
if _, err := os.Stat(indexPath); err == nil {
http.ServeFile(w, r, indexPath)
return
}