From faf3c2f827e786bc06ea143b80bb98c9a1e18304 Mon Sep 17 00:00:00 2001 From: Carlhuda Date: Fri, 26 Feb 2010 18:24:55 -0800 Subject: Set the body using the accessor for AD::Response introspection mode so it gets wrapped in a [] --- actionpack/lib/action_dispatch/http/response.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb index e6ed28742f..9cfe5a5ea9 100644 --- a/actionpack/lib/action_dispatch/http/response.rb +++ b/actionpack/lib/action_dispatch/http/response.rb @@ -43,7 +43,8 @@ module ActionDispatch # :nodoc: @block = nil @length = 0 - @status, @header, @body = status, header, body + @status, @header = status, header + self.body = body @cookie = [] @sending_file = false -- cgit v1.2.3