diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-11 02:59:32 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-11 03:00:00 -0800 |
commit | 42fbb5d3a6c6488c2015bd81f1a00f1873cfb819 (patch) | |
tree | c30a3518afc62ca836514f070aea584cfdd2f1ec /lib/rainbows/fiber | |
parent | 1e08dbab5683904ebeab01391eb6cd632ed9732e (diff) | |
download | rainbows-42fbb5d3a6c6488c2015bd81f1a00f1873cfb819.tar.gz |
This exposes a client IO object directly to the underlying application.
Diffstat (limited to 'lib/rainbows/fiber')
-rw-r--r-- | lib/rainbows/fiber/base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rainbows/fiber/base.rb b/lib/rainbows/fiber/base.rb index 129448c..995b4af 100644 --- a/lib/rainbows/fiber/base.rb +++ b/lib/rainbows/fiber/base.rb @@ -82,6 +82,7 @@ module Rainbows buf << (client.read_timeout or return) end + env[CLIENT_IO] = client env[RACK_INPUT] = 0 == hp.content_length ? HttpRequest::NULL_IO : TeeInput.new(client, env, hp, buf) env[REMOTE_ADDR] = remote_addr |