about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-01-06 17:41:41 -0800
committerEric Wong <normalperson@yhbt.net>2010-01-06 17:41:41 -0800
commit87c742bd385593bfe001dc3247c4a4ae7fc92463 (patch)
tree8289c10c3de5a66a78205ea8e6fb9944a4ffeb47
parent5d4fd9f41ab57f7297569910c08f7330dd3ec39e (diff)
hacking the C extension with RSTRING_LEN() is so much easier :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 249733a..0c609ba 100644
--- a/lib/clogger/pure.rb
+++ b/lib/clogger/pure.rb
@@ -39,7 +39,7 @@ class Clogger
   def each
     @body_bytes_sent = 0
     @body.each do |part|
-      @body_bytes_sent += part.size
+      @body_bytes_sent += Rack::Utils.bytesize(part)
       yield part
     end
     ensure