diff options
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/http.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/netlib/http.py b/netlib/http.py index a49f0588..35e959cd 100644 --- a/netlib/http.py +++ b/netlib/http.py @@ -45,6 +45,11 @@ def parse_url(url): return None if not scheme: return None + if '@' in netloc: + # FIXME: Consider what to do with the discarded credentials here Most + # probably we should extend the signature to return these as a separate + # value. + _, netloc = string.rsplit(netloc, '@', maxsplit=1) if ':' in netloc: host, port = string.rsplit(netloc, ':', maxsplit=1) try: |