fix json return things

This commit is contained in:
Henrique Dias
2015-09-14 18:41:49 +01:00
parent a388b6a025
commit 3b0d8380cb
2 changed files with 7 additions and 3 deletions

View File

@@ -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)