This commit is contained in:
Henrique Dias committed 2015-09-15 11:59:48 +01:00
1 parent e3ac3a6a4b
commit 85aea63307
9 files changed
+354 -36

No files matched your search

+4 -1
View File
@@ -66,7 +66,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 {
if _, err := os.Stat(filename); os.IsNotExist(err) {
log.Print(err)