diff options
Diffstat (limited to 'lib/rainbows/dev_fd_response.rb')
-rw-r--r-- | lib/rainbows/dev_fd_response.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rainbows/dev_fd_response.rb b/lib/rainbows/dev_fd_response.rb index e4e5f0c..5b90d24 100644 --- a/lib/rainbows/dev_fd_response.rb +++ b/lib/rainbows/dev_fd_response.rb @@ -36,6 +36,10 @@ module Rainbows else headers['X-Rainbows-Autochunk'] = 'no' end + + # we need to make sure our pipe output is Fiber-compatible + env["rainbows.model"] == :FiberSpawn and + return [ status, headers.to_hash, Fiber::IO.new(io,::Fiber.current) ] else # unlikely, char/block device file, directory, ... return response end |