mirror of
https://github.com/caddyserver/caddy.git
synced 2025-04-22 20:54:11 +08:00
browse: Add txt files to list of default files
This commit is contained in:
parent
74b758034e
commit
a578c43810
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user