Skip to content

Attempt to fix #3399 where it crashes on route prerequisites when no domain is present - #3401

Merged
hueniverse merged 1 commit into
hapijs:masterfrom
sirgallifrey:master
Dec 1, 2016
Merged

hueniverse merged 1 commit into
hapijs:masterfrom
sirgallifrey:master

Conversation

@sirgallifrey

Copy link
Copy Markdown
Contributor

I wrote a failing test witch match the description on #3399 and added a check to see if domain exists before binding. I also changed domain = process.domain to domain = request.domain to prevent the test domain from being used.

I'm sorry in advance if this fix is no good, I just recently started to studying the hapi internals

@sirgallifrey sirgallifrey changed the title Attempt to fix #3399 here it crashes on route prerequisites when no domain is present Attempt to fix #3399 where it crashes on route prerequisites when no domain is present Dec 1, 2016
@hueniverse

Copy link
Copy Markdown
Contributor

Don't apologize in advance (or after the fact for that matter) for making a mistake. I don't know if you have, I'm just saying in general. I appreciate the effort. I'll review this week.

@simlevesque

simlevesque commented Dec 1, 2016

Copy link
Copy Markdown
Contributor

I'll be able to test this PR on my machine environment later today.

@AdriVanHoudt

Copy link
Copy Markdown
Contributor

@sirgallifrey yeah no need to say sorry, we appreciate every contribution very much!

@simlevesque

Copy link
Copy Markdown
Contributor

This PR solves the bug ! Not much else to say, it used not to work, now it does.

Thank you very much everyone.

@hueniverse hueniverse added the bug Bug or defect label Dec 1, 2016
@hueniverse hueniverse added this to the 16.0.1 milestone Dec 1, 2016
@hueniverse hueniverse self-assigned this Dec 1, 2016
@hueniverse
hueniverse merged commit 47a9566 into hapijs:master Dec 1, 2016
@lock

lock Bot commented Jan 9, 2020

Copy link
Copy Markdown

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

bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants