Revision 981732fb lib/http/client.py
b/lib/http/client.py | ||
---|---|---|
106 | 106 |
|
107 | 107 |
""" |
108 | 108 |
if netutils.IPAddress.IsValid(self.host): |
109 |
family = netutils.IPAddress.GetAddressFamily(self.host) |
|
110 |
address = netutils.FormatAddress(family, (self.host, self.port)) |
|
109 |
address = netutils.FormatAddress((self.host, self.port)) |
|
111 | 110 |
else: |
112 | 111 |
address = "%s:%s" % (self.host, self.port) |
113 | 112 |
# TODO: Support for non-SSL requests |
Also available in: Unified diff