Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Z_MEM_ERROR when passing a string instead of a Buffer to deflate() #2

Closed
nornagon opened this issue Sep 7, 2011 · 2 comments
Closed
Assignees
Labels

Comments

@nornagon
Copy link

nornagon commented Sep 7, 2011

deflate should just silently convert strings to buffers (or at least throw a more useful error).

@jahewson
Copy link
Owner

jahewson commented Sep 9, 2011

no support for strings currently, but yes, deflate of strings could accept an encoding and default to utf8.

@ghost ghost assigned jahewson Sep 9, 2011
@jahewson
Copy link
Owner

a better error message is now thrown in v1.0.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants