This commit is contained in:
parsec 2023-03-16 21:51:18 -04:00
parent 72ed8fa4a9
commit f3b9d67b77

View file

@ -14,8 +14,8 @@ type fallback struct {
func OpenDefault(fb fallback, requestPath string) (http.File, error) {
requestPath = path.Dir(requestPath)
defaultFile := requestPath + "/" + fb.defaultPath;
defaultFile := requestPath + "/" + fb.defaultPath
f, err := fb.fs.Open(defaultFile)
if os.IsNotExist(err) && requestPath != "" {
parentPath, _ := path.Split(requestPath)