lib/rack/deflater.rb in rack-1.0.0 vs lib/rack/deflater.rb in rack-1.0.1

- old
+ new

@@ -58,10 +58,10 @@ def each(&block) @writer = block gzip =::Zlib::GzipWriter.new(self) gzip.mtime = @mtime - @body.each { |part| gzip << part } + @body.each { |part| gzip.write(part) } @body.close if @body.respond_to?(:close) gzip.close @writer = nil end