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

Prefer user added encoding over built-in #3717

Merged
merged 2 commits into from Dec 21, 2017

Conversation

@benib
Copy link
Contributor

@benib benib commented Dec 20, 2017

This implements #3701 and resolves outmoded/discuss#589

Please let me know if I missed anything. And thanks a lot for the great framework ❤️

@benib benib changed the title Prefer user added encoding over builtin Prefer user added encoding over built-in Dec 20, 2017
@kanongil
Copy link
Contributor

@kanongil kanongil commented Dec 20, 2017

Thanks, can you add a test as well?

@benib
Copy link
Contributor Author

@benib benib commented Dec 20, 2017

@kanongil i changed the existing test to test if the added encoder is preferred over built in ones by sending accept-encoding: gzip, deflate, test instead of accept-encoding: test.

Would you prefer to have a separate test instead?

@kanongil
Copy link
Contributor

@kanongil kanongil commented Dec 20, 2017

Should be fine. The important part is that it would fail with the old code.

@hueniverse hueniverse self-assigned this Dec 21, 2017
@hueniverse hueniverse added this to the 17.2.1 milestone Dec 21, 2017
@hueniverse
Copy link
Contributor

@hueniverse hueniverse commented Dec 21, 2017

I consider this a bug fix since the only reason to add a custom encoder is to give it higher priority. But also marked it as breaking as it does change existing behavior.

@hueniverse hueniverse merged commit dfec8ed into hapijs:master Dec 21, 2017
2 checks passed
@benib benib deleted the prefer-user-encoder branch Jan 20, 2018
@lock
Copy link

@lock lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants