Merge pull request #810 from KAYLukas/fix/pako-missing-eof

Handle end of stream in compression correctly
This commit is contained in:
Sanjana Rajan 2018-12-07 11:52:25 +01:00 committed by GitHub
commit 798ac529df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,6 +146,9 @@ function pako_zlib(constructor, options = {}) {
obj.push(value, pako.Z_SYNC_FLUSH);
return obj.result;
}
}, () => {
obj.push([], pako.Z_FINISH);
return obj.result;
});
};
}