diff --git a/fs.go b/fs.go index 6175721..b987b4e 100644 --- a/fs.go +++ b/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