We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 562a13a commit e974a27Copy full SHA for e974a27
static.go
@@ -3,7 +3,7 @@ package goyave
3
import (
4
"io/fs"
5
"net/http"
6
- "path/filepath"
+ fpath "path"
7
"strings"
8
9
"github.com/samber/lo"
@@ -39,7 +39,7 @@ func cleanStaticPath(fs fs.StatFS, file string) string {
39
}
40
path += "index.html"
41
42
- return filepath.Clean(path)
+ return fpath.Clean(path)
43
44
45
func checkStaticPath(path string) bool {
0 commit comments