mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-22 23:24:44 +00:00
Fix previous commit.
This commit is contained in:
parent
415efe262e
commit
fb4689dbe1
1 changed files with 1 additions and 0 deletions
1
linkcheck/cache/cookie.py
vendored
1
linkcheck/cache/cookie.py
vendored
|
|
@ -57,6 +57,7 @@ class CookieJar (object):
|
|||
@synchronized(_lock)
|
||||
def get (self, scheme, host, port, path):
|
||||
"""Cookie cache getter function."""
|
||||
jar = self.cache.setdefault(host, set())
|
||||
cookies = [x for x in jar if x.check_expired() and \
|
||||
x.is_valid_for(scheme, host, port, path)]
|
||||
log.debug(LOG_CACHE, "Found %d cookies for host %r path %r",
|
||||
|
|
|
|||
Loading…
Reference in a new issue