projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24da410
)
sigh
author
Kenneth Reitz
<me@kennethreitz.com>
Wed, 17 Aug 2011 04:09:47 +0000
(
00:09
-0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Wed, 17 Aug 2011 04:09:47 +0000
(
00:09
-0400)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index a48e67eac67a1fa5deb8481d98e56229ee7868bb..d32193fd8a2ff19e4ef0f59838a840efc0e05866 100644
(file)
--- 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,