aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-09-08 16:25:44 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-09-14 09:19:30 -0700
commitc33f51a89437b0b8eeb6288a460175c26b572aa6 (patch)
tree35508265f6ccf94a3b12c5868f73396fdf34d848 /actionpack
parent89e61f0133f09b2bfa0f020039f6e92f3c21160e (diff)
downloadrails-c33f51a89437b0b8eeb6288a460175c26b572aa6.tar.gz
rails-c33f51a89437b0b8eeb6288a460175c26b572aa6.tar.bz2
rails-c33f51a89437b0b8eeb6288a460175c26b572aa6.zip
`rack_response` should use the status it's given
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index d1e1f1fcf6..45ffacd6f5 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -402,7 +402,7 @@ module ActionDispatch # :nodoc:
end
def rack_response(status, header)
- if NO_CONTENT_CODES.include?(@status)
+ if NO_CONTENT_CODES.include?(status)
header.delete CONTENT_TYPE
header.delete 'Content-Length'
[status, header, []]