Explain protocol inference regardless of how it's inferred.
This commit is contained in:
parent
7cfddb7080
commit
bb4a20e2d2
|
@ -83,8 +83,8 @@ def extract_from_page (page, verbosity, url, args):
|
||||||
if "//" in domain:
|
if "//" in domain:
|
||||||
protocol = domain[:domain.index("//")+2]
|
protocol = domain[:domain.index("//")+2]
|
||||||
else:
|
else:
|
||||||
debug ("Assuming HTTPS for remote instance", verbosity, platform)
|
|
||||||
protocol = "https://"
|
protocol = "https://"
|
||||||
|
debug ("Assuming " + protocol + " for remote instance", verbosity, platform)
|
||||||
index = name.index('@')
|
index = name.index('@')
|
||||||
domain = protocol + name[index+1:]
|
domain = protocol + name[index+1:]
|
||||||
name = name[:index]
|
name = name[:index]
|
||||||
|
|
Loading…
Reference in New Issue