mirror of https://gitlab.com/bashrc2/epicyon
Try to fill in missing prefix
parent
eae34bb5c3
commit
3ffb05014b
|
@ -427,6 +427,10 @@ def verify_html(session, url: str, debug: bool,
|
||||||
if not url_exists(session, url, 3, http_prefix, domain):
|
if not url_exists(session, url, 3, http_prefix, domain):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if '://' not in url:
|
||||||
|
if url.startswith('/'):
|
||||||
|
url = http_prefix + '://' + domain + url
|
||||||
|
|
||||||
as_header = {
|
as_header = {
|
||||||
'Accept': 'text/html'
|
'Accept': 'text/html'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue