From 5e46dd3eb533b55335db64db1cac89520b1d0b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=95=86=E8=AE=AF=E5=9C=A8=E7=BA=BF?= Date: Fri, 24 Oct 2014 22:35:49 +0800 Subject: [PATCH] update --- main.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 7ffc49b..a2a2359 100644 --- a/main.go +++ b/main.go @@ -49,11 +49,6 @@ func init() { // 定时检查无效会话 session.FixedTimeRelease() - - //解决Windows环境下问题 - mime.AddExtensionType(".css", "text/css") - mime.AddExtensionType(".js", "application/x-javascript") - mime.AddExtensionType(".json", "application/json") } // 登录. @@ -279,6 +274,12 @@ func aboutHandler(w http.ResponseWriter, r *http.Request) { // 主程序入口. func main() { + + //解决Windows环境下问题 + mime.AddExtensionType(".css", "text/css") + mime.AddExtensionType(".js", "application/x-javascript") + mime.AddExtensionType(".json", "application/json") + runtime.GOMAXPROCS(conf.Wide.MaxProcs) defer glog.Flush()