Skip to content

Conversation

@easyaspi314
Copy link

@easyaspi314 easyaspi314 commented Nov 13, 2017

This is just roughly tested, but I just ported the
change from nodejs/node#8512, or at least attempted to.

Before, when trying to inflateRaw (or inflate({raw:true});) with a custom
dictionary, you would get 'invalid distance too far back'.

This no longer seems to happen, so I think I fixed it.

I wasn't able to get browserify working, but I successfully tested it in the REPL.

Feel free to reformat or move things if necessary. I won't call myself the best at following code style.

This is just roughly tested, but I just ported the
change from nodejs/node#8512, or at least attempted to.

Before, when trying to inflateRaw (or inflate({raw:true});) with a custom
dictionary, you would get 'invalid distance too far back'.

This no longer seems to happen, so I think I fixed it.
@easyaspi314 easyaspi314 changed the title Allow raw deflation with a custom dictionary. Allow raw inflation with a custom dictionary. Nov 13, 2017
Even more annoying than accidental tabs.
@puzrin
Copy link
Member

puzrin commented Nov 13, 2017

Looks ok, but could you add test (copy-paste existing one for non-raw deflate)?

@Ruffio
Copy link

Ruffio commented Nov 5, 2018

@easyaspi314 how about a test for your PR? I don't think this PR will be merged if there are no tests...

@puzrin
Copy link
Member

puzrin commented Jan 9, 2019

Close in favor of #156

@puzrin puzrin closed this Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants