diff options
Diffstat (limited to 'lib/rainbows/rev/client.rb')
-rw-r--r-- | lib/rainbows/rev/client.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/rev/client.rb b/lib/rainbows/rev/client.rb index f854a63..bc8d7fa 100644 --- a/lib/rainbows/rev/client.rb +++ b/lib/rainbows/rev/client.rb @@ -4,6 +4,7 @@ module Rainbows module Rev class Client < ::Rev::IO + include Rainbows::ByteSlice include Rainbows::EvCore include Rainbows::HttpResponse G = Rainbows::G @@ -33,7 +34,7 @@ module Rainbows end # we never care for the return value, but yes, we may return # a "fake" short write from super(buf) if anybody cares. - buf = buf[w..-1] + buf = byte_slice(buf, w..-1) rescue Errno::EAGAIN break # fall through to super(buf) rescue |