1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-20 10:26:01 +00:00
Former-commit-id: 901fb7a50f0d60962f5c7a317e41d65d8a0ee993
This commit is contained in:
Gerasimos Maropoulos
2018-03-16 12:39:36 +02:00

View File

@@ -108,7 +108,7 @@ func (w *GzipResponseWriter) EndResponse() {
func (w *GzipResponseWriter) Write(contents []byte) (int, error) {
// save the contents to serve them (only gzip data here)
w.chunks = append(w.chunks, contents...)
return len(w.chunks), nil
return len(contents), nil
}
// Writef formats according to a format specifier and writes to the response.