Skip to content

Conversation

@nerg4l
Copy link
Member

@nerg4l nerg4l commented Mar 5, 2020

Parameters from a request are strings but the identical operator (===) will compare it with an int or a float which will always return false.

This PR fixes this issue by casting the strings to the proper type.

@nerg4l nerg4l requested a review from a team March 5, 2020 22:07
@nerg4l nerg4l merged commit c374450 into coding-socks:master Mar 6, 2020
@nerg4l nerg4l deleted the bugfix/parameter-type branch March 6, 2020 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants