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:
parent
74b758034e
commit
a578c43810
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue