diff --git a/middleware/browse/browse.go b/middleware/browse/browse.go index 6dca4c3d..d11fe6f8 100644 --- a/middleware/browse/browse.go +++ b/middleware/browse/browse.go @@ -131,8 +131,10 @@ func (fi FileInfo) HumanModTime(format string) string { var IndexPages = []string{ "index.html", "index.htm", + "index.txt", "default.html", "default.htm", + "default.txt", } func directoryListing(files []os.FileInfo, urlPath string, canGoUp bool) (Listing, error) {