1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 13:30:55 +00:00

fix the init mime

This commit is contained in:
astaxie 2014-10-20 18:21:17 +08:00
parent 24489df63d
commit 76db5cded4

View File

@ -364,6 +364,9 @@ func initBeforeHttpRun() {
} }
} }
//init mime
AddAPPStartHook(initMime)
// do hooks function // do hooks function
for _, hk := range hooks { for _, hk := range hooks {
err := hk() err := hk()
@ -409,9 +412,6 @@ func initBeforeHttpRun() {
Get("/docs", serverDocs) Get("/docs", serverDocs)
Get("/docs/*", serverDocs) Get("/docs/*", serverDocs)
} }
//init mime
AddAPPStartHook(initMime)
} }
// this function is for test package init // this function is for test package init