mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Add a FIXME note for discarded credentials
This commit is contained in:
parent
52f430c934
commit
f4013dcd40
@ -46,6 +46,9 @@ def parse_url(url):
|
|||||||
if not scheme:
|
if not scheme:
|
||||||
return None
|
return None
|
||||||
if '@' in netloc:
|
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)
|
_, netloc = string.rsplit(netloc, '@', maxsplit=1)
|
||||||
if ':' in netloc:
|
if ':' in netloc:
|
||||||
host, port = string.rsplit(netloc, ':', maxsplit=1)
|
host, port = string.rsplit(netloc, ':', maxsplit=1)
|
||||||
|
Loading…
Reference in New Issue
Block a user