-
Notifications
You must be signed in to change notification settings - Fork 984
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 #1565: Return 444 status code for closed and aborted requests #1579
Fix #1565: Return 444 status code for closed and aborted requests #1579
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM 👍
Thanks for this @benjaminRomano IIRC we just did something similar at another layer in our stack @DonutEspresso? |
Awesome, thank you for this PR @benjaminRomano, 💯 for including tests! Only one minor point of feedback - I would prefer we check against the connectionStates Aside from that, LGTM. |
👍 I agree checking connectionState explicitly is safer. I've updated the PR |
@retrohacker I believe this is ready to be merged |
@DonutEspresso
Issues
Closes:
Changes
Sets the response status code to 444 for aborted or closed requests.
The client will never see this response. This is solely for plugins like audit-logger and metrics to record an accurate
statusCode
instead of what was set usingres.send