Hopefully fixed Windows support
This commit is contained in:
parent
b0ebf1177b
commit
41a7546334
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var Version = "0.13.3"
|
||||
var Version = "0.13.4"
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(versionCmd)
|
||||
|
|
|
@ -86,7 +86,7 @@ func serveStaticFile(w http.ResponseWriter, r *http.Request, paths []string) err
|
|||
return err
|
||||
}
|
||||
|
||||
filePath := strings.TrimPrefix(prefixedFilePath, PREFIX)
|
||||
filePath := filepath.Clean(strings.TrimPrefix(prefixedFilePath, PREFIX))
|
||||
|
||||
if !pathIsValid(filePath, paths) {
|
||||
http.NotFound(w, r)
|
||||
|
|
Loading…
Reference in New Issue