about summary refs log tree commit homepage
path: root/lib/rainbows/dev_fd_response.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-18 06:47:52 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-18 07:44:55 +0000
commitfd1ec829c8c941143c8ae70b18e51838bc51da73 (patch)
treeeb000f1e56e78334692c699aea5bb36f43a93289 /lib/rainbows/dev_fd_response.rb
parented9f3e90939cfa9efcc6e5e9382f1e1f40c49834 (diff)
downloadrainbows-fd1ec829c8c941143c8ae70b18e51838bc51da73.tar.gz
HeaderHash objects can only be used as headers without
violating Rack::Lint in Rack 1.1.0 or later.
Diffstat (limited to 'lib/rainbows/dev_fd_response.rb')
-rw-r--r--lib/rainbows/dev_fd_response.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/dev_fd_response.rb b/lib/rainbows/dev_fd_response.rb
index bab35bc..479a668 100644
--- a/lib/rainbows/dev_fd_response.rb
+++ b/lib/rainbows/dev_fd_response.rb
@@ -40,7 +40,7 @@ module Rainbows
         # we need to make sure our pipe output is Fiber-compatible
         case env["rainbows.model"]
         when :FiberSpawn, :FiberPool, :RevFiberSpawn
-          return [ status, headers.to_hash, Fiber::IO.new(io,::Fiber.current) ]
+          return [ status, headers, Fiber::IO.new(io,::Fiber.current) ]
         end
       else # unlikely, char/block device file, directory, ...
         return response
@@ -48,7 +48,7 @@ module Rainbows
       resp = dup # be reentrant here
       resp.to_path = "/dev/fd/#{io.fileno}"
       resp.to_io = io
-      [ status, headers.to_hash, resp ]
+      [ status, headers, resp ]
     end
 
     # called by the webserver or other middlewares if they can't