mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
periodically flush writer
This commit is contained in:
parent
188e6ebcdb
commit
410b4016fd
@ -136,6 +136,7 @@ func (c *compressionResponseWriter) Write(p []byte) (int, error) {
|
||||
return -1, errors.New("compressing error: tried to write data using closed compressor")
|
||||
}
|
||||
c.Header().Set(headerContentEncoding, c.encoding)
|
||||
defer c.compressor.Flush()
|
||||
return c.compressor.Write(p)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user