lib/unwind.rb in unwind-0.9.5 vs lib/unwind.rb in unwind-0.9.6
- old
+ new
@@ -92,10 +92,10 @@
def add_cookies(value)
case value
when Hash
merge!(value)
when String
- value = value.gsub(/expires=[\w,\s-:]+;/i, '')
+ value = value.gsub(/expires=[\w,\s\-\:]+;/i, '')
value = value.gsub(/httponly[\,\;]*/i, '')
value.split(/[;,]\s/).each do |cookie|
array = cookie.split('=')
self[array[0].strip.to_sym] = array[1]
end