From 35a136bceeebe614c815a6afae2998858d8f82f8 Mon Sep 17 00:00:00 2001 From: astaxie Date: Sun, 29 Sep 2013 15:38:28 +0800 Subject: [PATCH] fix #232 --- router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/router.go b/router.go index 3bca9f22..64fd2689 100644 --- a/router.go +++ b/router.go @@ -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