diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-01-06 17:41:41 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-01-06 17:41:41 -0800 |
commit | 87c742bd385593bfe001dc3247c4a4ae7fc92463 (patch) | |
tree | 8289c10c3de5a66a78205ea8e6fb9944a4ffeb47 | |
parent | 5d4fd9f41ab57f7297569910c08f7330dd3ec39e (diff) | |
download | clogger-87c742bd385593bfe001dc3247c4a4ae7fc92463.tar.gz |
hacking the C extension with RSTRING_LEN() is so much easier :P
-rw-r--r-- | lib/clogger/pure.rb | 2 |
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 |