=str #21395 fix default flushing in Deflate/Gzip compression
This was accidentally lost during the move from akka-http. Otherwise, it isn't possible to decompress chunk-by-chunk because the implementation will internally buffer data.
This commit is contained in:
parent
2c32a7cde9
commit
6470463b50
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ private[stream] object CompressionUtils {
|
|||
val compressor = newCompressor()
|
||||
|
||||
override def onPush(): Unit = {
|
||||
val data = compressor.compress(grab(in))
|
||||
val data = compressor.compressAndFlush(grab(in))
|
||||
if (data.nonEmpty) push(out, data)
|
||||
else pull(in)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue