This commit is contained in:
Henrique Dias committed 2015-09-14 22:36:15 +01:00
1 parent 234e2a1ec4
commit e3ac3a6a4b
3 files changed
+47 -4

No files matched your search

+4 -1
View File
@@ -50,7 +50,10 @@ func Execute(w http.ResponseWriter, r *http.Request) (int, error) {
w.Header().Set("Content-Type", "application/json")
w.Write([]byte("{}"))
go commands.Execute()
if r.Header.Get("X-Save-Mode") == "publish" {
go commands.Execute()
}
} else {
content, err := ioutil.ReadFile("config." + language)