commit | 74a249e1a9424c6055435a855916a580d443189f | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Tue Sep 14 21:45:36 2004 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Tue Sep 14 21:45:36 2004 +0000 |
tree | 3c6066441df31db119f8cadb0f574f0c570a6692 | |
parent | 82d0eecf427ca09f65cfa9a718adfd9e5e7275e8 [diff] [blame] |
Strip square brackets from IPv6 address.
diff --git a/Lib/httplib.py b/Lib/httplib.py index b7276af..c88b172 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py
@@ -534,6 +534,8 @@ host = host[:i] else: port = self.default_port + if host[0] == '[' and host[-1] == ']': + host = host[1:-1] self.host = host self.port = port