From ff36e5eb1deac3d31b156f0aa8cfc64e158895aa Mon Sep 17 00:00:00 2001 From: Martin Riedl Date: Tue, 2 Jul 2024 01:26:21 +0200 Subject: [PATCH] renamed camel case index file names --- fs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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