0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

browse: Add txt files to list of default files

This commit is contained in:
Matthew Holt 2015-07-24 10:27:03 -06:00
parent 74b758034e
commit a578c43810

View file

@ -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) {