mirror of
https://github.com/astaxie/beego.git
synced 2024-12-26 01:00:50 +00:00
fix the init mime
This commit is contained in:
parent
24489df63d
commit
76db5cded4
6
beego.go
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user