mirror of
https://github.com/labstack/echo.git
synced 2026-06-20 01:18:42 +02:00
Encapsulated fields and exposed public functions.
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user