1
0
mirror of https://github.com/labstack/echo.git synced 2026-05-20 10:10:03 +02:00

fix Windows

This commit is contained in:
toimtoimtoim
2022-01-15 11:11:04 +02:00
committed by Martti T
parent b830c4ef95
commit db5bace1c4
+1 -1
View File
@@ -33,7 +33,7 @@ func fsFile(c Context, file string, filesystem fs.FS) error {
fi, _ := f.Stat()
if fi.IsDir() {
file = filepath.Join(file, indexPage)
file = filepath.ToSlash(filepath.Join(file, indexPage)) // ToSlash is necessary for Windows
f, err = filesystem.Open(file)
if err != nil {
return ErrNotFound