mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-10 17:40:58 +00:00
Make scheme and domain for internal url pattern case insensitive.
This commit is contained in:
parent
b089b04a79
commit
7b567cc378
1 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,8 @@ def get_intern_pattern (url):
|
|||
"""Return intern pattern for given URL. Redirections to the same
|
||||
domain with or without "www." prepended are allowed."""
|
||||
parts = strformat.url_unicode_split(url)
|
||||
scheme = parts[0]
|
||||
domain = parts[1]
|
||||
scheme = parts[0].lower()
|
||||
domain = parts[1].lower()
|
||||
domain, is_idn = urlutil.idna_encode(domain)
|
||||
# allow redirection www.example.com -> example.com and vice versa
|
||||
if domain.startswith('www.'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue