This commit is contained in:
Michael Quigley 2022-09-21 14:57:42 -04:00
parent 60dc2c6e6b
commit 65209caa53
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -21,7 +21,7 @@ func StaticBuilder(handler http.Handler) http.Handler {
logrus.Debugf("directing '%v' to static handler", r.URL.Path)
staticPath := "build"
indexPath := "index.gohtml"
indexPath := "index.html"
// get the absolute path to prevent directory traversal
path, err := filepath.Abs(r.URL.Path)