update
This commit is contained in:
parent
682f8f451d
commit
5e46dd3eb5
11
main.go
11
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()
|
||||
|
|
Loading…
Reference in New Issue