lib/rack/chunked.rb in rack-2.0.3 vs lib/rack/chunked.rb in rack-2.0.4
- old
+ new
@@ -22,10 +22,10 @@
term = TERM
@body.each do |chunk|
size = chunk.bytesize
next if size == 0
- chunk = chunk.dup.force_encoding(Encoding::BINARY)
+ chunk = chunk.b
yield [size.to_s(16), term, chunk, term].join
end
yield TAIL
end