in mns/mns_client.py [0:0]
def process_host(self, host):
if host.startswith("http://"):
if host.endswith("/"):
host = host[:-1]
host = host[len("http://"):]
return host, False
elif host.startswith("https://"):
if host.endswith("/"):
host = host[:-1]
host = host[len("https://"):]
return host, True
else:
raise MNSClientParameterException("InvalidHost", "Only support http prototol. Invalid host:%s" % host)