1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
Andrew White 2016-02-16 05:59:43 +00:00
parent 4247f02688
commit 89df021375

View file

@ -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: