From 60a3b6612b9b5aecf52f95ee604566bacb87e33d Mon Sep 17 00:00:00 2001 From: Patrick Peng Sun Date: Wed, 31 May 2017 22:38:48 +1000 Subject: [PATCH] init all proc --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index dca92d2..58f418d 100644 --- a/main.go +++ b/main.go @@ -37,6 +37,7 @@ func main() { log.Fatal("unable to read crm_config.json, program quit") } + initAllProc() setupRootFileServer() startSessionManager(2048) KFUsers.kfRenewList() @@ -127,5 +128,5 @@ func initialRegistrationHandler(w http.ResponseWriter, r *http.Request) { http.SetCookie(w, &cookie) cookie = http.Cookie{Name: "signature", Value: "abcee", Expires: expiration} http.SetCookie(w, &cookie) - http.Redirect(w, r, "http://192.168.1.39:4200/#pages/charts/chartist-js", 302) + http.Redirect(w, r, "http://192.168.1.39:4200/#pages/charts/chartist-js", 307) //302 temp redirect }