diff options
-rw-r--r-- | lib/raindrops/middleware.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/raindrops/middleware.rb b/lib/raindrops/middleware.rb index 8ddac1f..2eb4e66 100644 --- a/lib/raindrops/middleware.rb +++ b/lib/raindrops/middleware.rb @@ -42,8 +42,8 @@ class Raindrops::Middleware < Struct.new(:app, :stats, :path, :tcp, :unix) end # yield to the Rack server here for writing - def each(&block) - app.each(&block) + def each + app.each { |x| yield x } end # the Rack server should call this after #each (usually ensure-d) |