diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-08 16:25:44 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-14 09:19:30 -0700 |
commit | c33f51a89437b0b8eeb6288a460175c26b572aa6 (patch) | |
tree | 35508265f6ccf94a3b12c5868f73396fdf34d848 /actionpack | |
parent | 89e61f0133f09b2bfa0f020039f6e92f3c21160e (diff) | |
download | rails-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.rb | 2 |
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, []] |