diff options
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index a4102ea..2f117d8 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -524,7 +524,7 @@ class HTTPConnection: def _set_hostport(self, host, port): if port is None: - i = host.find(':') + i = host.rfind(':') if i >= 0: try: port = int(host[i+1:]) |