We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e3bcfb commit 12195e9Copy full SHA for 12195e9
lib/rack/mock.rb
@@ -282,7 +282,7 @@ def parse_cookies_from_header
282
def identify_cookie_attributes(cookie_filling)
283
cookie_bits = cookie_filling.split(';')
284
cookie_attributes = Hash.new
285
- cookie_attributes.store('value', cookie_bits[0].strip)
+ cookie_attributes.store('value', Array(cookie_bits[0].strip))
286
cookie_bits.each do |bit|
287
if bit.include? '='
288
cookie_attribute, attribute_value = bit.split('=')
0 commit comments