Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native base64 encoding, fix for binary attachments #589

Conversation

benjamine
Copy link
Contributor

@benjamine benjamine commented Jun 14, 2016

this removes the base-64 dependency which doesn't support binary input (it throws an error if input is not ASCII), that makes json formatter fail if any attachment is binary (like screenshots are), replacing it node.js native base64 encoding.
as a side benefit, native encoding is probably (not measure) faster, and it's one less dependency to care about.

@charlierudolph
Copy link
Member

Awesome! Can you please add a test that fails without your change and passes with it to better document what was fixed?

@benjamine
Copy link
Contributor Author

@charlierudolph makes sense, added, I used /example/images/favicon.png in the test (needed a binary image file), I hope that's ok.

@charlierudolph charlierudolph merged commit 3a2861d into cucumber:master Jun 24, 2016
@charlierudolph
Copy link
Member

Thanks!

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants