diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-09-07 12:47:17 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-09-07 12:47:17 +1200 |
commit | f4013dcd406c731c08c02789f80ccb364844c0ff (patch) | |
tree | 9cea31075a82783cd13985b8e42312c5019abce8 /netlib/http.py | |
parent | 52f430c93446d36cf995c05dcd80a3451c1d5a22 (diff) | |
download | mitmproxy-f4013dcd406c731c08c02789f80ccb364844c0ff.tar.gz mitmproxy-f4013dcd406c731c08c02789f80ccb364844c0ff.tar.bz2 mitmproxy-f4013dcd406c731c08c02789f80ccb364844c0ff.zip |
Add a FIXME note for discarded credentials
Diffstat (limited to 'netlib/http.py')
-rw-r--r-- | netlib/http.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/netlib/http.py b/netlib/http.py index 53a47d50..35e959cd 100644 --- a/netlib/http.py +++ b/netlib/http.py @@ -46,6 +46,9 @@ def parse_url(url): 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) |