aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http
diff options
context:
space:
mode:
authorKrekoten' Marjan <krekoten@gmail.com>2010-10-18 22:00:48 +0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-10-18 17:34:22 -0200
commita75d21df06d0b7af21921aad38b021056aa15e63 (patch)
treeb05f92c4606f82f2a3bd3a490f413f09323a3495 /actionpack/lib/action_dispatch/http
parent608bf7b72c227a3030db9418217d9a77325c2b21 (diff)
downloadrails-a75d21df06d0b7af21921aad38b021056aa15e63.tar.gz
rails-a75d21df06d0b7af21921aad38b021056aa15e63.tar.bz2
rails-a75d21df06d0b7af21921aad38b021056aa15e63.zip
Fix status initialization when custom status provided
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index 72871e328a..8e03a7879f 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -44,8 +44,8 @@ module ActionDispatch # :nodoc:
@block = nil
@length = 0
- @status, @header = status, header
- self.body = body
+ @header = header
+ self.body, self.status = body, status
@cookie = []
@sending_file = false