From a578c43810661e9c7c1762fb75d10c379cbfc613 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 24 Jul 2015 10:27:03 -0600 Subject: [PATCH] browse: Add txt files to list of default files --- middleware/browse/browse.go | 2 ++ 1 file changed, 2 insertions(+) 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) {