sigh
authorKenneth Reitz <me@kennethreitz.com>
Wed, 17 Aug 2011 04:09:47 +0000 (00:09 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Wed, 17 Aug 2011 04:09:47 +0000 (00:09 -0400)
requests/models.py

index a48e67e..d32193f 100644 (file)
@@ -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,