From 783e540d6dc63c3fdebdcc94d163a05a54127dd6 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 17 Aug 2011 00:09:47 -0400 Subject: [PATCH] sigh --- requests/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requests/models.py b/requests/models.py index a48e67e..d32193f 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, -- 2.34.1