fix the init mime
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -364,6 +364,9 @@ func initBeforeHttpRun() { | ... | @@ -364,6 +364,9 @@ func initBeforeHttpRun() { |
| 364 | } | 364 | } |
| 365 | } | 365 | } |
| 366 | 366 | ||
| 367 | //init mime | ||
| 368 | AddAPPStartHook(initMime) | ||
| 369 | |||
| 367 | // do hooks function | 370 | // do hooks function |
| 368 | for _, hk := range hooks { | 371 | for _, hk := range hooks { |
| 369 | err := hk() | 372 | err := hk() |
| ... | @@ -409,9 +412,6 @@ func initBeforeHttpRun() { | ... | @@ -409,9 +412,6 @@ func initBeforeHttpRun() { |
| 409 | Get("/docs", serverDocs) | 412 | Get("/docs", serverDocs) |
| 410 | Get("/docs/*", serverDocs) | 413 | Get("/docs/*", serverDocs) |
| 411 | } | 414 | } |
| 412 | |||
| 413 | //init mime | ||
| 414 | AddAPPStartHook(initMime) | ||
| 415 | } | 415 | } |
| 416 | 416 | ||
| 417 | // this function is for test package init | 417 | // this function is for test package init | ... | ... |
-
Please register or sign in to post a comment