mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-10-14 00:59:29 +00:00
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…
x
Reference in New Issue
Block a user