diff --git a/requests/models.py b/requests/models.py index a48e67ea..d32193fd 100644 --- a/requests/models.py +++ b/requests/models.py @@ -510,7 +510,9 @@ class AuthManager(object): scheme = None authority = uri path = '/' + host, port = urllib2.splitport(authority) + if default_port and port is None and scheme is not None: dport = {"http": 80, "https": 443,