lib/rainbows/revactor.rb in rainbows-0.8.0 vs lib/rainbows/revactor.rb in rainbows-0.9.0
- old
+ new
@@ -47,9 +47,10 @@
begin
while ! hp.headers(env, buf)
buf << client.read(*rd_args)
end
+ env[Const::CLIENT_IO] = client
env[Const::RACK_INPUT] = 0 == hp.content_length ?
HttpRequest::NULL_IO :
Rainbows::Revactor::TeeInput.new(client, env, hp, buf)
env[Const::REMOTE_ADDR] = remote_addr
response = app.call(env.update(RACK_DEFAULTS))