about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-28 00:06:49 +0000
committerEric Wong <e@80x24.org>2016-07-28 02:08:59 +0000
commitc318315034a962e03999d3ad6819bd35e9ac2a09 (patch)
tree339ef65ab31265f0c05b25a41a1be22113dde2f0
parent77e43e7803440af0cee9272fb00930664abe01aa (diff)
This method is gone from rack 2.0 and not even necessary in Ruby
1.8.7.  Yes, this breaks compatibility with Ruby 1.8.6 :P
-rw-r--r--lib/clogger/pure.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/clogger/pure.rb b/lib/clogger/pure.rb
index 5e7ccfe..77f81b4 100644
--- a/lib/clogger/pure.rb
+++ b/lib/clogger/pure.rb
@@ -53,7 +53,7 @@ class Clogger
   def each
     @body_bytes_sent = 0
     @body.each do |part|
-      @body_bytes_sent += Rack::Utils.bytesize(part)
+      @body_bytes_sent += part.bytesize
       yield part
     end
     self