fix the init mime

This commit is contained in:
astaxie 2014-10-20 18:21:17 +08:00
parent 24489df63d
commit 76db5cded4
1 changed files with 3 additions and 3 deletions

View File

@ -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