Handle end of stream in compression correctly
This commit is contained in:
parent
9d585cd35d
commit
a49529d243
|
@ -146,6 +146,9 @@ function pako_zlib(constructor, options = {}) {
|
||||||
obj.push(value, pako.Z_SYNC_FLUSH);
|
obj.push(value, pako.Z_SYNC_FLUSH);
|
||||||
return obj.result;
|
return obj.result;
|
||||||
}
|
}
|
||||||
|
}, () => {
|
||||||
|
obj.push([], pako.Z_FINISH);
|
||||||
|
return obj.result;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user