mirror of
https://github.com/labstack/echo.git
synced 2025-07-17 01:43:02 +02:00
committed by
Vishal Rana
parent
90d675fa2a
commit
f49d166e6f
@ -36,8 +36,8 @@ func TestGzip(t *testing.T) {
|
||||
assert.Contains(t, rec.Header().Get(echo.HeaderContentType), echo.MIMETextPlain)
|
||||
r, err := gzip.NewReader(rec.Body)
|
||||
if assert.NoError(t, err) {
|
||||
defer r.Close()
|
||||
buf := new(bytes.Buffer)
|
||||
defer r.Close()
|
||||
buf.ReadFrom(r)
|
||||
assert.Equal(t, "test", buf.String())
|
||||
}
|
||||
|
Reference in New Issue
Block a user