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