platform agnostic change
This commit is contained in:
parent
0065861eab
commit
eb7b1cf026
1 changed files with 1 additions and 1 deletions
2
main.go
2
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue