1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:10:54 +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),
}
context.Output.Context = context
context.Output.EnableGzip = EnableGzip
if context.Input.IsWebsocket() {
context.ResponseWriter = rw