You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
fix json return things
This commit is contained in:
@@ -48,7 +48,9 @@ func Execute(w http.ResponseWriter, r *http.Request) (int, error) {
|
||||
return 500, err
|
||||
}
|
||||
|
||||
commands.Execute()
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.Write([]byte("{}"))
|
||||
go commands.Execute()
|
||||
} else {
|
||||
content, err := ioutil.ReadFile("config." + language)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user