Compare commits
No commits in common. "9333574de256a953bdec8f8eb107a220878aef1f" and "2ae702adc231a2549a4e61376e24005a4c44d1b8" have entirely different histories.
9333574de2
...
2ae702adc2
3 changed files with 15 additions and 24 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,5 +2,3 @@
|
|||
tmp
|
||||
indir
|
||||
indir-*
|
||||
.zed
|
||||
index.html
|
||||
|
|
|
|||
7
main.go
7
main.go
|
|
@ -172,13 +172,6 @@ func main() {
|
|||
return
|
||||
}
|
||||
|
||||
// serve index.html if present (case-sensitive)
|
||||
indexPath := filepath.Join(fpath, "index.html")
|
||||
if _, err := os.Stat(indexPath); err == nil {
|
||||
http.ServeFile(w, r, indexPath)
|
||||
return
|
||||
}
|
||||
|
||||
// embeded readme
|
||||
var readmeHTML template.HTML
|
||||
entries, err := os.ReadDir(fpath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue