mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-03-02 04:02:13 +01:00
Fixed separator code in config path (#616)
* un quoted separator in config * addressed review comments
This commit is contained in:
parent
d0867477ff
commit
4296856cc1
@ -1180,7 +1180,7 @@ func main() {
|
||||
gr.HandleFunc("/api/log-active-state", AuthKeyWrap(HandleLogActiveState))
|
||||
gr.HandleFunc("/api/read-file", AuthKeyWrapAllowHmac(HandleReadFile))
|
||||
gr.HandleFunc("/api/write-file", AuthKeyWrap(HandleWriteFile)).Methods("POST")
|
||||
configPath := filepath.Join(scbase.GetWaveHomeDir(), "config") + strconv.QuoteRune(filepath.Separator)
|
||||
configPath := filepath.Join(scbase.GetWaveHomeDir(), "config") + string(filepath.Separator)
|
||||
log.Printf("[wave] config path: %q\n", configPath)
|
||||
isFileHandler := http.StripPrefix("/config/", http.FileServer(http.Dir(configPath)))
|
||||
isDirHandler := http.HandlerFunc(configDirHandler)
|
||||
|
Loading…
Reference in New Issue
Block a user