Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Replace HTTP::Server::Response#respond_with_error with #respond_with_status #6988
The only benefit of not closing directly is that you could append to the body (for example to provide more error data). That's a pretty irrelevant use case however.
This also changes the error response to a fixed content length.