Fix bug from capitals in 'https://'

This commit is contained in:
Tanner Collin 2023-04-29 19:38:05 +00:00
parent 7943e291fb
commit 61225ebd20
3 changed files with 4264 additions and 1 deletions

2143
index.html.bak Normal file

File diff suppressed because it is too large Load Diff

2120
reversed.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -52,7 +52,7 @@ async def new_message(event):
if website: if website:
prefixes = ['http://', 'https://', 'gemini://', 'gopher://'] prefixes = ['http://', 'https://', 'gemini://', 'gopher://']
for prefix in prefixes: for prefix in prefixes:
if website.startswith(prefix): if website.lower().startswith(prefix):
break break
else: # for loop else: # for loop
website = 'http://' + website website = 'http://' + website