mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +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) {
|
||||
// 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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user