Changed variable name from PascalCase to camelCase
This commit is contained in:
parent
5f28361f47
commit
eff8394453
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var Version = "0.25.4"
|
||||
var Version = "0.25.5"
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(versionCmd)
|
||||
|
|
|
@ -255,12 +255,12 @@ func serveHtml(w http.ResponseWriter, r *http.Request, filePath string, dimensio
|
|||
}
|
||||
|
||||
func serveStaticFile(w http.ResponseWriter, r *http.Request, paths []string) error {
|
||||
PrefixedFilePath, err := stripQueryParams(r.URL.Path)
|
||||
prefixedFilePath, err := stripQueryParams(r.URL.Path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
filePath, err := filepath.EvalSymlinks(strings.TrimPrefix(PrefixedFilePath, Prefix))
|
||||
filePath, err := filepath.EvalSymlinks(strings.TrimPrefix(prefixedFilePath, Prefix))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue