From 53758d0a777e290df1c061c9eb861d4bc8b2b7c8 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Fri, 12 Apr 2013 01:26:29 +0900 Subject: [PATCH] Omit expiration check in cookies(). Remove an unused variable. --- lib/http/cookie_jar.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/http/cookie_jar.rb b/lib/http/cookie_jar.rb index 2e96edf..22d9259 100644 --- a/lib/http/cookie_jar.rb +++ b/lib/http/cookie_jar.rb @@ -88,8 +88,7 @@ class HTTP::CookieJar # Gets an array of cookies that should be sent for the URL/URI, # updating the access time of each cookie. def cookies(url) - now = Time.now - each(url).reject(&:expired?).sort + each(url).sort end # Tests if the jar is empty. If `url` is given, tests if there is