From 97d088ebf249c47a79aea419add1007fa24c1489 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 27 Aug 2015 10:45:33 -0700 Subject: use the non-hash dependent Rack utils API eventually we will refactor this to not know about header hashes --- actionpack/lib/action_dispatch/http/response.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb index d860e00217..0987efc474 100644 --- a/actionpack/lib/action_dispatch/http/response.rb +++ b/actionpack/lib/action_dispatch/http/response.rb @@ -257,11 +257,11 @@ module ActionDispatch # :nodoc: end def set_cookie(key, value) - ::Rack::Utils.set_cookie_header!(header, key, value) + header[SET_COOKIE] = ::Rack::Utils.add_cookie_to_header(header[SET_COOKIE], key, value) end def delete_cookie(key, value={}) - ::Rack::Utils.delete_cookie_header!(header, key, value) + header[SET_COOKIE] = ::Rack::Utils.add_remove_cookie_to_header(header[SET_COOKIE], key, value) end # The location header we'll be responding with. -- cgit v1.2.3