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

Make sure Boom initialize method auto cast string statusCode to Integer if possible #51

Closed
rgampa opened this issue Apr 13, 2015 · 0 comments · Fixed by #52
Assignees
Labels
bug
Milestone

Comments

@rgampa
Copy link

@rgampa rgampa commented Apr 13, 2015

At line

Hoek.assert(Hoek.isInteger(statusCode) && statusCode >= 400, 'First argument must be a number (400+):', statusCode);
the validation is failing if input statusCode is not of Integer type, but which can be converted to integer. Can someone please fix this issue, otherwise in consumer module previous initialization code started breaking and client is receiving 500 internal server error.

@arb arb added the bug label Apr 13, 2015
@arb arb self-assigned this Apr 13, 2015
@arb arb added this to the 2.7.1 milestone Apr 13, 2015
arb added a commit to arb/boom that referenced this issue Apr 13, 2015
@arb arb closed this in #52 Apr 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.