chunk unterminated HTTP/1.1 responses
commit66c4ed7957459de270cffedfd494562359386d4e
authorEric Wong <bofh@yhbt.net>
Thu, 1 Jun 2023 21:19:35 +0000 (1 21:19 +0000)
committerEric Wong <bofh@yhbt.net>
Mon, 5 Jun 2023 09:17:18 +0000 (5 09:17 +0000)
tree2c780b220798a615fc97f350355831eda093064f
parent9d7bab0bc2211b20806d4d0289a7ea992e49a8a1
chunk unterminated HTTP/1.1 responses

Rack::Chunked will be gone in Rack 3.1, so provide a
non-middleware fallback which takes advantage of IO#write
supporting multiple arguments in Ruby 2.5+.

We still need to support Ruby 2.4, at least, since Rack 3.0
does.  So a new (GC-unfriendly) Unicorn::WriteSplat module now
exists for Ruby <= 2.4 users.
Documentation/unicorn.1
examples/echo.ru
ext/unicorn_http/unicorn_http.rl
lib/unicorn.rb
lib/unicorn/http_response.rb
lib/unicorn/socket_helper.rb
lib/unicorn/write_splat.rb [new file with mode: 0644]
test/unit/test_server.rb