mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-12 16:43:11 +00:00
fix cache key
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1443 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
c37d3acd50
commit
726aac7ac0
1 changed files with 3 additions and 3 deletions
|
|
@ -93,14 +93,14 @@ class FileUrl (urlbase.UrlBase):
|
|||
self.has_content = True
|
||||
return self.data
|
||||
|
||||
def get_cache_keys (self):
|
||||
def get_cache_key (self):
|
||||
# the host in urlparts is lowercase()d
|
||||
if self.urlparts:
|
||||
self.urlparts[4] = self.anchor
|
||||
key = urlparse.urlunsplit(self.urlparts)
|
||||
self.urlparts[4] = ''
|
||||
return [key]
|
||||
return []
|
||||
return key
|
||||
return None
|
||||
|
||||
def is_html (self):
|
||||
if linkcheck.checker.extensions['html'].search(self.url):
|
||||
|
|
|
|||
Loading…
Reference in a new issue