mirror of
https://github.com/labstack/echo.git
synced 2026-05-20 10:10:03 +02:00
fix Windows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user