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

Ensure Express/Connect send a 500 (not 200) when about to crash #513

Merged
merged 4 commits into from
Apr 5, 2019

Conversation

bengourley
Copy link
Contributor

Fixes #510.

The end to end tests don't make any assertions about the requests to this server, so I installed it in the example project to ensure it behaves as expected.

I also had an issue installing the dependencies for the example so I upgraded them.

The wrong property was being used in attempt to set the HTTP status code. This fixes it for Express
and Connect (connect doesn't have the method res.status()).

Fixes #510.
@bengourley bengourley merged commit 4b86aa3 into next Apr 5, 2019
@bengourley bengourley deleted the express-status-code branch April 5, 2019 16:22
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