diff options
author | Pritam Baral <pritam@pritambaral.com> | 2014-05-28 07:10:10 +0530 |
---|---|---|
committer | Pritam Baral <pritam@pritambaral.com> | 2014-05-28 07:10:10 +0530 |
commit | dc071c4ea7c77b640cb733d769f06631dceb8477 (patch) | |
tree | 0501de6dc6dff8683ee41d9e3bec0cfb64bd8d51 /netlib/http.py | |
parent | 52c6ba8880363ba5d82b5e767559afbc72371272 (diff) | |
download | mitmproxy-dc071c4ea7c77b640cb733d769f06631dceb8477.tar.gz mitmproxy-dc071c4ea7c77b640cb733d769f06631dceb8477.tar.bz2 mitmproxy-dc071c4ea7c77b640cb733d769f06631dceb8477.zip |
Ignore username:password part in url
Diffstat (limited to 'netlib/http.py')
-rw-r--r-- | netlib/http.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/netlib/http.py b/netlib/http.py index f5b8118a..d000b802 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: |