From e18013e25e2c8f29b92aecc4487a724fc4525505 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Mon, 22 Oct 2012 03:51:10 +0900 Subject: [PATCH] Each record in cookies.txt must have seven columns at most. --- lib/http/cookie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http/cookie.rb b/lib/http/cookie.rb index 6f069af..71f9b2f 100644 --- a/lib/http/cookie.rb +++ b/lib/http/cookie.rb @@ -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!