From 76db5cded4e7e1e63b3da2751f6c463cf0cc4e75 Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 20 Oct 2014 18:21:17 +0800 Subject: [PATCH] fix the init mime --- beego.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beego.go b/beego.go index 8824798f..f23174c7 100644 --- a/beego.go +++ b/beego.go @@ -364,6 +364,9 @@ func initBeforeHttpRun() { } } + //init mime + AddAPPStartHook(initMime) + // do hooks function for _, hk := range hooks { err := hk() @@ -409,9 +412,6 @@ func initBeforeHttpRun() { Get("/docs", serverDocs) Get("/docs/*", serverDocs) } - - //init mime - AddAPPStartHook(initMime) } // this function is for test package init