Permalink
Browse files

Don't stream each line of the body, just send the whole thing

  • Loading branch information...
josh committed May 8, 2009
1 parent 7f1f16c commit e61cceb37fa99a0eaf510e6e8138eca4b9cefcfd
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/response.rb
@@ -152,7 +152,7 @@ def each(&callback)
@writer = lambda { |x| callback.call(x) }
@body.call(self, self)
elsif @body.is_a?(String)
- @body.each_line(&callback)
+ yield @body
else
@body.each(&callback)
end

0 comments on commit e61cceb

Please sign in to comment.