summaryrefslogtreecommitdiffstats
path: root/api4
diff options
context:
space:
mode:
Diffstat (limited to 'api4')
-rw-r--r--api4/context.go3
-rw-r--r--api4/system.go2
2 files changed, 1 insertions, 4 deletions
diff --git a/api4/context.go b/api4/context.go
index 8d4ed7f79..7a908c588 100644
--- a/api4/context.go
+++ b/api4/context.go
@@ -130,9 +130,6 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId)
w.Header().Set(model.HEADER_VERSION_ID, fmt.Sprintf("%v.%v.%v.%v", model.CurrentVersion, model.BuildNumber, utils.ClientCfgHash, utils.IsLicensed))
- if einterfaces.GetClusterInterface() != nil {
- w.Header().Set(model.HEADER_CLUSTER_ID, einterfaces.GetClusterInterface().GetClusterId())
- }
w.Header().Set("Content-Type", "application/json")
diff --git a/api4/system.go b/api4/system.go
index 465f4e71d..97d8bb7dc 100644
--- a/api4/system.go
+++ b/api4/system.go
@@ -107,7 +107,7 @@ func updateConfig(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- err := app.SaveConfig(cfg)
+ err := app.SaveConfig(cfg, true)
if err != nil {
c.Err = err
return