mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +00:00
Do not touch and yield a cookie that should not be sent.
This commit is contained in:
parent
30920cae9c
commit
51da5e4c50
1 changed files with 4 additions and 2 deletions
|
|
@ -63,8 +63,10 @@ class HTTP::CookieJar
|
||||||
if cookie.expired?
|
if cookie.expired?
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
cookie.accessed_at = Time.now
|
if cookie.valid_for_uri?(uri)
|
||||||
yield cookie
|
cookie.accessed_at = Time.now
|
||||||
|
yield cookie
|
||||||
|
end
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue