diff --git a/netlib/http.py b/netlib/http.py index f5b8118aa..d000b802f 100644 --- a/netlib/http.py +++ b/netlib/http.py @@ -43,6 +43,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: