diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-22 02:25:11 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-22 02:25:11 +0000 |
commit | a831f5685ac03f7f0f3d341df89eade6134b55b4 (patch) | |
tree | 69c0fe390e5fe75a512a3b2e5976281c9605d8cd | |
parent | 6858c79a49a5d25edb6c06ffd131749eb2f23b2b (diff) | |
download | rainbows-a831f5685ac03f7f0f3d341df89eade6134b55b4.tar.gz |
Untested, but it should work nowadays...
-rw-r--r-- | lib/rainbows/dev_fd_response.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/rainbows/dev_fd_response.rb b/lib/rainbows/dev_fd_response.rb index edc39af..5173157 100644 --- a/lib/rainbows/dev_fd_response.rb +++ b/lib/rainbows/dev_fd_response.rb @@ -6,10 +6,6 @@ # objects. This may be used in conjunction with the #to_path method # on servers that support it to pass arbitrary file descriptors into # the HTTP response without additional open(2) syscalls -# -# This middleware is currently a no-op for Rubinius, as it lacks -# IO.copy_stream in 1.9 and also due to a bug here: -# http://github.com/evanphx/rubinius/issues/379 class Rainbows::DevFdResponse < Struct.new(:app) @@ -21,12 +17,6 @@ class Rainbows::DevFdResponse < Struct.new(:app) Rainbows_model = "rainbows.model" HTTP_VERSION = "HTTP_VERSION" Chunked = "chunked" - - # make this a no-op under Rubinius, it's pointless anyways - # since Rubinius doesn't have IO.copy_stream - def self.new(app) - app - end if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' include Rack::Utils # Rack middleware entry point, we'll just pass through responses |