zlib: fix abort with decodeStrings: false · nodejs/node@bb3d33e · GitHub
Skip to content

Commit bb3d33e

Browse files
Cherryaduh95
authored andcommitted
zlib: fix abort with decodeStrings: false
Passing decodeStrings: false to a zlib stream, or to an async convenience method, let strings reach the native handle, which aborts the process on its Buffer check. Force decodeStrings back to true, as is already done for encoding and objectMode. Signed-off-by: James Ross <james@jross.me> PR-URL: #66359 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 6948dd1 commit bb3d33e

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

‎lib/zlib.js‎

Lines changed: 3 additions & 1 deletion
Lines changed: 32 additions & 0 deletions

0 commit comments

Comments
 (0)