lib/rack/response.rb in rack-3.0.8 vs lib/rack/response.rb in rack-3.0.9
- old
+ new
@@ -326,9 +326,11 @@
# The user supplied body was an array:
@body = @body.compact
@body.each do |part|
@length += part.to_s.bytesize
end
+
+ @buffered = true
elsif @body.respond_to?(:each)
# Turn the user supplied body into a buffered array:
body = @body
@body = Array.new