diff --git a/netlib/http.py b/netlib/http.py index a49f0588e..53a47d501 100644 --- a/netlib/http.py +++ b/netlib/http.py @@ -45,6 +45,8 @@ def parse_url(url): return None if not scheme: return None + if '@' in netloc: + _, netloc = string.rsplit(netloc, '@', maxsplit=1) if ':' in netloc: host, port = string.rsplit(netloc, ':', maxsplit=1) try: