mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-26 18:50:32 +00:00
always norm a URL before sending a request
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2653 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
eba33c61e6
commit
cc0f7cb113
1 changed files with 2 additions and 0 deletions
|
|
@ -329,6 +329,8 @@ class UrlBase (object):
|
|||
self.url = urljoin(self.parent_url, base_url, self.scheme)
|
||||
else:
|
||||
self.url = base_url
|
||||
# note: urljoin can unnorm the url, so norm the url
|
||||
self.url, is_idn = linkcheck.url.url_norm(self.url)
|
||||
# split into (modifiable) list
|
||||
self.urlparts = linkcheck.strformat.url_unicode_split(self.url)
|
||||
# and unsplit again
|
||||
|
|
|
|||
Loading…
Reference in a new issue