From 6577b0868e38cf6c9d42ee6ff57623ca62bb078b Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sun, 18 Feb 2018 14:17:56 +0000 Subject: [PATCH] Encode services JSON as a string --- server/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/http.go b/server/http.go index 1b669f3..b792986 100644 --- a/server/http.go +++ b/server/http.go @@ -256,7 +256,8 @@ func (h *Server) handleLogout(w http.ResponseWriter, req *http.Request, session if req.Method == "POST" { data["IsPOST"] = true data["IncludeLogoutScripts"] = true - data["ServicesJSON"], _ = json.Marshal(svcs) + svcJSON, _ := json.Marshal(svcs) + data["ServicesJSON"] = string(svcJSON) // Clear the local session. httpSession, _ := h.authSessionStore.Get(req, authSessionKey) -- GitLab