lib/htmlcompressor/rack.rb in htmlcompressor-0.0.6 vs lib/htmlcompressor/rack.rb in htmlcompressor-0.0.7

- old
+ new

@@ -41,10 +41,10 @@ body.each do |part| content << part end content = @compressor.compress(content) - headers['Content-Length'] = content.length.to_s if headers['Content-Length'] + headers['Content-Length'] = content.bytesize.to_s if headers['Content-Length'] [status, headers, [content]] else [status, headers, body] end \ No newline at end of file