Each record in cookies.txt must have seven columns at most.

This commit is contained in:
Akinori MUSHA 2012-10-22 03:51:10 +09:00
parent c727d39076
commit e18013e25e

View file

@ -239,7 +239,7 @@ class HTTP::Cookie
path, # Path for which the cookie is relevant
s_secure, # Requires a secure connection
s_expires, # Time the cookie expires (Unix epoch time)
name, value = line.split("\t")
name, value = line.split("\t", 7)
return nil if value.nil?
value.chomp!