Encapsulated fields and exposed public functions.

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2015-05-22 04:40:01 -07:00
parent df924ffc11
commit bf85c56b08
13 changed files with 108 additions and 82 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func TestGzip(t *testing.T) {
// Content-Encoding header
req.Header.Set(echo.AcceptEncoding, "gzip")
w = httptest.NewRecorder()
c.Response = echo.NewResponse(w)
c.Response().SetWriter(w)
Gzip()(h)(c)
ce := w.Header().Get(echo.ContentEncoding)
if ce != "gzip" {