Gitlab Community Edition Instance

Commit 4d7c47ad authored by mhellka's avatar mhellka
Browse files

Fix url_split_auth()

parent a4fc6fb1
......@@ -27,7 +27,7 @@ def url_split_auth(url: str):
split = urllib.parse.urlsplit(url)
username, password = split.username, split.password
if username or password:
netloc =
netloc = split.hostname
if split.port:
netloc += ":" + str(split.port)
url = urllib.parse.urlunsplit(split._replace(netloc=netloc))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment