diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-02-03 12:16:03 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-02-03 12:16:03 +1300 |
commit | d8cb826361c2487ba7feb0c09669d6518d51c987 (patch) | |
tree | b29764b4d9c664f52a3c8b62724f05fa752b5342 /libmproxy/proxy.py | |
parent | db99da6af560f80bc169979f6d8681de3879acf2 (diff) | |
download | mitmproxy-d8cb826361c2487ba7feb0c09669d6518d51c987.tar.gz mitmproxy-d8cb826361c2487ba7feb0c09669d6518d51c987.tar.bz2 mitmproxy-d8cb826361c2487ba7feb0c09669d6518d51c987.zip |
Test suite rejiggering and cleanup.
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r-- | libmproxy/proxy.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index 9715bb5a..00b9e0ba 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -45,7 +45,10 @@ def parse_url(url): port = int(port) else: host = netloc - port = 80 + if scheme == "https": + port = 443 + else: + port = 80 path = urlparse.urlunparse(('', '', path, params, query, fragment)) if not path: path = "/" @@ -277,6 +280,8 @@ class FileLike: return result +#begin nocover + class ServerConnection: def __init__(self, request): self.request = request |