Try to fill in missing prefix

merge-requests/30/head
Bob Mottram 2023-10-11 20:48:24 +01:00
parent eae34bb5c3
commit 3ffb05014b
1 changed files with 4 additions and 0 deletions

View File

@ -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'
} }