tools/web: factorize getNormalizedURL
This commit is contained in:
parent
76ec0d26b4
commit
55e6550cb1
7 changed files with 26 additions and 21 deletions
|
|
@ -21,7 +21,7 @@ def headers(url):
|
|||
url -- the page URL to get header
|
||||
"""
|
||||
|
||||
o = urllib.parse.urlparse(url, "http")
|
||||
o = urllib.parse.urlparse(web.getNormalizedURL(url), "http")
|
||||
if o.netloc == "":
|
||||
raise IRCException("invalid URL")
|
||||
if o.scheme == "http":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue