Closed cyangle closed 2 years ago
Closes HTTP::Server::Response by default in HTTP::Server::Context#redirect
Does not close response by default with option to override it.
Redirections in before filters would skip processing in RouteHandler
Writing to closed HTTP::Server::Response raises Closed stream (IO::Error)
Closed stream (IO::Error)
Related to https://github.com/kemalcr/kemal/issues/638
I'm not sure if this needs to be configurable. I'd be happy with always closing the response. But it's probably fine to have the option.
Description of the Change
Closes HTTP::Server::Response by default in HTTP::Server::Context#redirect
Alternate Designs
Does not close response by default with option to override it.
Benefits
Redirections in before filters would skip processing in RouteHandler
Possible Drawbacks
Writing to closed HTTP::Server::Response raises
Closed stream (IO::Error)