From 66c4ed7957459de270cffedfd494562359386d4e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 1 Jun 2023 21:19:35 +0000 Subject: 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. --- examples/echo.ru | 1 - 1 file changed, 1 deletion(-) (limited to 'examples') diff --git a/examples/echo.ru b/examples/echo.ru index 14908c5..e982180 100644 --- a/examples/echo.ru +++ b/examples/echo.ru @@ -19,7 +19,6 @@ class EchoBody < Struct.new(:input) end -use Rack::Chunked run lambda { |env| /\A100-continue\z/i =~ env['HTTP_EXPECT'] and return [100, {}, []] [ 200, { 'Content-Type' => 'application/octet-stream' }, -- cgit v1.2.3-24-ge0c7