1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 18:30:56 +00:00
This commit is contained in:
astaxie 2013-09-29 15:38:28 +08:00
parent aaf1490ff5
commit 35a136bcee

View File

@ -300,6 +300,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
Output: beecontext.NewOutput(w), Output: beecontext.NewOutput(w),
} }
context.Output.Context = context context.Output.Context = context
context.Output.EnableGzip = EnableGzip
if context.Input.IsWebsocket() { if context.Input.IsWebsocket() {
context.ResponseWriter = rw context.ResponseWriter = rw