mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Omit expiration check in cookies(). Remove an unused variable.
This commit is contained in:
parent
917adc1abb
commit
53758d0a77
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue