Skip to content

Commit

Permalink
fix Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Jan 15, 2022
1 parent 34cacc2 commit 1fb0ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context_fs_go1.16.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fb0ba3

Please sign in to comment.