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

Add support for hapi 18 #397

Merged
merged 3 commits into from
Feb 27, 2019
Merged

Add support for hapi 18 #397

merged 3 commits into from
Feb 27, 2019

Conversation

rluba
Copy link
Contributor

@rluba rluba commented Feb 27, 2019

This PR includes two fixes related to hapi 18:

  1. Many tests broke because hapi now strips the default port from request.info.host (a side effect of using the WHATWG URL API) – causing lots of assertions to fail. I decided to use a non-default port in the tests instead of removing the default port from the assertions. This verifies that port info is still propagated correctly.
  2. request.url.query is no longer available. I’ve changed it to request.query which works for hapi 18 and older versions. (I’ve tested it with hapi 17 and 18). This fixes Google auth redirect loop with hapi v18 #394.

@AdriVanHoudt
Copy link
Contributor

This is amazing, thank you!

@AdriVanHoudt AdriVanHoudt self-assigned this Feb 27, 2019
@AdriVanHoudt AdriVanHoudt added the feature New functionality or improvement label Feb 27, 2019
@AdriVanHoudt AdriVanHoudt added this to the 9.5.1 milestone Feb 27, 2019
@AdriVanHoudt AdriVanHoudt merged commit 5c28ac3 into hapijs:master Feb 27, 2019
@rluba
Copy link
Contributor Author

rluba commented Feb 28, 2019

@AdriVanHoudt You’re welcome. Thank you for maintaining this project. 🙇‍♂️

@AdriVanHoudt
Copy link
Contributor

No problem! It is PR's like this that make it possible :O

@AdriVanHoudt AdriVanHoudt mentioned this pull request Mar 5, 2019
@AdriVanHoudt AdriVanHoudt added the breaking changes Change that can breaking existing code label Mar 5, 2019
@lock
Copy link

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.
Labels
breaking changes Change that can breaking existing code feature New functionality or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Google auth redirect loop with hapi v18
2 participants