mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-10 22:00:58 +01:00
Fix deflateEnd() to not report an error at start of raw deflate.
c376a417a7
This commit is contained in:
parent
4dd6658edc
commit
8a1cdad62b
1 changed files with 3 additions and 0 deletions
|
@ -1589,6 +1589,9 @@ const deflate = (strm, flush) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write the header */
|
/* Write the header */
|
||||||
|
if (s.status === INIT_STATE && s.wrap === 0) {
|
||||||
|
s.status = BUSY_STATE;
|
||||||
|
}
|
||||||
if (s.status === INIT_STATE) {
|
if (s.status === INIT_STATE) {
|
||||||
/* zlib header */
|
/* zlib header */
|
||||||
let header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;
|
let header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;
|
||||||
|
|
Loading…
Add table
Reference in a new issue