renamed camel case index file names
This commit is contained in:
parent
a6d67cf60a
commit
ff36e5eb1d
1 changed files with 2 additions and 2 deletions
4
fs.go
4
fs.go
|
@ -33,7 +33,7 @@ type FS struct {
|
|||
UseLocalFolder bool
|
||||
LocalFolderPrefix string
|
||||
HeaderHandler HeaderHandler
|
||||
IndexFilenames []string
|
||||
IndexFileNames []string
|
||||
}
|
||||
|
||||
// NewFS creates a new instance of the http file system used for serving static files.
|
||||
|
@ -109,7 +109,7 @@ func (fs *FS) checkFolder(file fs.File, url string) (fs.File, bool) {
|
|||
_ = file.Close()
|
||||
|
||||
// check for index files
|
||||
for _, indexFileName := range fs.IndexFilenames {
|
||||
for _, indexFileName := range fs.IndexFileNames {
|
||||
newFullPath := path.Join(url, indexFileName)
|
||||
if newFile, err := fs.findFile(newFullPath); err == nil {
|
||||
return newFile, true
|
||||
|
|
Loading…
Add table
Reference in a new issue