From f597dc5cf6a0a513e89144dd302e7e3cbac22a5d Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 27 Aug 2015 11:38:52 -0700 Subject: remove useless conditional cookies are always stored as a string in the header hash, so it will not need to be joined. --- actionpack/lib/action_dispatch/http/response.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'actionpack/lib/action_dispatch') 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' -- cgit v1.2.3