# HG changeset patch # User Sascha L. Teichmann # Date 1556207441 -7200 # Node ID 8a4fb02ee60a9f61ed3fd837f936163f6cf8a6e3 # Parent 8e364945a390d859cf251cfa605443c9e8a1a446 Send empty JSON document when calling GET /api/system/config and "published-config" is not configure. diff -r 8e364945a390 -r 8a4fb02ee60a pkg/controllers/system.go --- a/pkg/controllers/system.go Thu Apr 25 17:17:36 2019 +0200 +++ b/pkg/controllers/system.go Thu Apr 25 17:50:41 2019 +0200 @@ -87,10 +87,7 @@ cfg := config.PublishedConfig() if cfg == "" { - err = JSONError{ - Code: http.StatusNotFound, - Message: "No published configuration found.", - } + jr = JSONResult{Result: strings.NewReader("{}")} return }