about summary refs log tree commit homepage
path: root/lib/rainbows/fiber/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/fiber/base.rb')
-rw-r--r--lib/rainbows/fiber/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/fiber/base.rb b/lib/rainbows/fiber/base.rb
index a056152..54f797b 100644
--- a/lib/rainbows/fiber/base.rb
+++ b/lib/rainbows/fiber/base.rb
@@ -49,7 +49,7 @@ module Rainbows
         ret[1].concat(RD.keys).each { |c| c.f.resume }
 
         # accept is an expensive syscall, filter out listeners we don't want
-        (ret.first & LISTENERS).each(&block)
+        (ret[0] & LISTENERS).each(&block)
       end
 
       # wakes up any sleepers that need to be woken and
@@ -91,7 +91,7 @@ module Rainbows
           env[REMOTE_ADDR] = remote_addr
           response = APP.call(env.update(RACK_DEFAULTS))
 
-          if 100 == response.first.to_i
+          if 100 == response[0].to_i
             client.write(EXPECT_100_RESPONSE)
             env.delete(HTTP_EXPECT)
             response = APP.call(env)