tools/web: factorize getNormalizedURL

This commit is contained in:
nemunaire 2015-10-14 00:17:02 +02:00
commit 55e6550cb1
7 changed files with 26 additions and 21 deletions

View file

@ -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":