mirror of
https://github.com/kataras/iris.git
synced 2025-02-13 12:36:20 +01:00
Merge pull request #931 from hyhkjiy/patch-1
Update gzip_response_writer.go Former-commit-id: 35d47ed1354ec72959c168563d43cdd63a269fdc
This commit is contained in:
commit
75601979c5
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user