Compare commits
No commits in common. "1cd15d51e4a628c2f792e5df0c1c0e0ae75b4ab9" and "9333574de256a953bdec8f8eb107a220878aef1f" have entirely different histories.
1cd15d51e4
...
9333574de2
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -174,7 +174,7 @@ func main() {
|
||||||
|
|
||||||
// serve index.html if present (case-sensitive)
|
// serve index.html if present (case-sensitive)
|
||||||
indexPath := filepath.Join(fpath, "index.html")
|
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)
|
http.ServeFile(w, r, indexPath)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue