mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-05 21:24:45 +00:00
Fix regression from last commit in this file.
This commit is contained in:
parent
e6ccd71ae1
commit
84e4e3b28a
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class InternPatternUrl (urlbase.UrlBase):
|
|||
domain, is_idn = urlutil.idna_encode(domain)
|
||||
# allow redirection www.example.com -> example.com and vice versa
|
||||
if domain.startswith('www.'):
|
||||
domain = domain[5:]
|
||||
domain = domain[4:]
|
||||
if not (domain and scheme):
|
||||
return None
|
||||
path = urlutil.splitparams(parts[2])[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue