Fix bug from capitals in 'https://'

master
Tanner Collin 1 year ago
parent 7943e291fb
commit 61225ebd20
  1. 2143
      index.html.bak
  2. 2120
      reversed.txt
  3. 2
      t0sig.py

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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

Loading…
Cancel
Save