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

Fixed possible invalid status code range error #15

Merged
merged 2 commits into from
Aug 29, 2023
Merged

Fixed possible invalid status code range error #15

merged 2 commits into from
Aug 29, 2023

Conversation

dylantmarsh
Copy link

If error.code is undefined, this can result in a RangeError where the HTTP status code is invalid. This will cause the application to crash, swallowing the actual error.

If `error.code` is undefined this can result in a RangeError where the HTTP status code is invalid. This will cause the application to crash swallowing the actual error.
Fixed possible invalid status code range error
@dylantmarsh
Copy link
Author

I am open to a more appropriate status code for this to default to.

@jankapunkt jankapunkt merged commit f5bf49b into node-oauth:master Aug 29, 2023
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.

None yet

3 participants