aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxedconsulting.com>2016-02-16 05:59:43 +0000
committerAndrew White <andrew.white@unboxedconsulting.com>2016-02-16 05:59:43 +0000
commit89df021375564fd613de646c53fa90b2d1eb7fb1 (patch)
treec4a51a3a8dda9d200285eb0c54546f54a58cc752
parent4247f02688e20af183f75b943b2444b66979198f (diff)
downloadrails-89df021375564fd613de646c53fa90b2d1eb7fb1.tar.gz
rails-89df021375564fd613de646c53fa90b2d1eb7fb1.tar.bz2
rails-89df021375564fd613de646c53fa90b2d1eb7fb1.zip
Join values using '; ' as per RFC spec
Multiple cookie values should be separated by '; ' according to RFC 6265, section 5.4.4[1]. [1]: https://tools.ietf.org/html/rfc6265#section-5.4
-rw-r--r--actionpack/lib/action_dispatch/middleware/cookies.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb
index 83ea7722c2..f2f3150b56 100644
--- a/actionpack/lib/action_dispatch/middleware/cookies.rb
+++ b/actionpack/lib/action_dispatch/middleware/cookies.rb
@@ -338,7 +338,7 @@ module ActionDispatch
end
def to_header
- @cookies.map { |k,v| "#{escape(k)}=#{escape(v)}" }.join ';'
+ @cookies.map { |k,v| "#{escape(k)}=#{escape(v)}" }.join '; '
end
def handle_options(options) #:nodoc: