pako
pako copied to clipboard
Inflate works incorrectly with the Z_SYNC_FLUSH flag
After the data has been sent to the push
method with the Z_SYNC_FLUSH
flag, no data appears in result
. At the same time, Zlib node js does a good job on the same piece of data.
Test code and file: test.zip
I guess the problem is that zlib returns Z_OK
instead of Z_STREAM_END
.