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
a48e67e
..
d32193f
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,