diff options
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index c88b172..1fb5e8a 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -534,8 +534,8 @@ class HTTPConnection: host = host[:i] else: port = self.default_port - if host[0] == '[' and host[-1] == ']': - host = host[1:-1] + if host[0] == '[' and host[-1] == ']': + host = host[1:-1] self.host = host self.port = port |