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

Fix reject unknown api calls with 404 #128

Merged
merged 3 commits into from
Feb 17, 2017
Merged

Conversation

jronak
Copy link
Contributor

@jronak jronak commented Feb 16, 2017

Fixes #52.
Solved it by checking if the request path has been matched/iterated completely. I think we can use the existing router with this fix for now until we have a new router.

Should I add the test cases as shown in 52-unknown-api-calls?

Let me know if I have to fix my code style/syntax.

Thanks!

@pnorman
Copy link
Contributor

pnorman commented Feb 16, 2017

Should I add the test cases as shown in 52-unknown-api-calls?

Yes, merge that git branch in and make sure it's passing

@jronak
Copy link
Contributor Author

jronak commented Feb 17, 2017

Merged, the test passes.

@zerebubuth zerebubuth merged commit 4018bcf into zerebubuth:master Feb 17, 2017
@zerebubuth
Copy link
Owner

Awesome! Thank you!

@jronak jronak deleted the handle404 branch February 17, 2017 11:12
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.

Reject unknown API calls
3 participants