fix returning wrong thing

chrusher/bus_synthesizer
Mike Lang 2 weeks ago
parent 3bbedde112
commit 9d45833ed1

@ -136,7 +136,7 @@ def resolve_relative_url(base_url, url):
parsed = urllib.parse.urlparse(url) parsed = urllib.parse.urlparse(url)
if parsed.scheme: if parsed.scheme:
# absolute url # absolute url
return parsed return url
parsed = parsed._replace(scheme=base_parsed.scheme) parsed = parsed._replace(scheme=base_parsed.scheme)
if parsed.netloc == "": if parsed.netloc == "":
parsed = parsed._replace(netloc=base_parsed.netloc) parsed = parsed._replace(netloc=base_parsed.netloc)

Loading…
Cancel
Save