EnableGzip bug fixed

This commit is contained in:
JessonChan 2016-01-04 09:27:58 +08:00
parent d23291ccc7
commit fd2ded190b
1 changed files with 2 additions and 0 deletions

View File

@ -609,6 +609,8 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request)
defer p.pool.Put(context)
defer p.recoverPanic(context)
context.Output.EnableGzip=BConfig.EnableGzip
if BConfig.RunMode == DEV {
context.Output.Header("Server", BConfig.ServerName)
}