Former-commit-id: 901fb7a50f0d60962f5c7a317e41d65d8a0ee993
This commit is contained in:
Gerasimos Maropoulos 2018-03-16 12:39:36 +02:00
commit 7689e48132

View File

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