about summary refs log tree commit homepage
path: root/lib/rainbows/rev/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/rev/client.rb')
-rw-r--r--lib/rainbows/rev/client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/rev/client.rb b/lib/rainbows/rev/client.rb
index e51ccdc..91040af 100644
--- a/lib/rainbows/rev/client.rb
+++ b/lib/rainbows/rev/client.rb
@@ -25,7 +25,7 @@ module Rainbows
           # extra userspace copy if possible.
           begin
             w = @_io.write_nonblock(buf)
-            if w == buf.bytesize
+            if w == Rack::Utils.bytesize(buf)
               on_write_complete
               return w
             end