aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/response.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-27 11:38:52 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-27 11:38:52 -0700
commitf597dc5cf6a0a513e89144dd302e7e3cbac22a5d (patch)
tree63c2dcbfaf559510c17b2e1ff67c13e5bd998b9e /actionpack/lib/action_dispatch/http/response.rb
parent14af136371bbd9e14c58aaabe0ce73a515cd09a4 (diff)
downloadrails-f597dc5cf6a0a513e89144dd302e7e3cbac22a5d.tar.gz
rails-f597dc5cf6a0a513e89144dd302e7e3cbac22a5d.tar.bz2
rails-f597dc5cf6a0a513e89144dd302e7e3cbac22a5d.zip
remove useless conditional
cookies are always stored as a string in the header hash, so it will not need to be joined.
Diffstat (limited to 'actionpack/lib/action_dispatch/http/response.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index 16782a894e..4aee489912 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -381,8 +381,6 @@ module ActionDispatch # :nodoc:
end
def rack_response(status, header)
- header[SET_COOKIE] = header[SET_COOKIE].join("\n") if header[SET_COOKIE].respond_to?(:join)
-
if NO_CONTENT_CODES.include?(@status)
header.delete CONTENT_TYPE
header.delete 'Content-Length'