Fix bug from capitals in 'https://'
This commit is contained in:
parent
7943e291fb
commit
61225ebd20
2143
index.html.bak
Normal file
2143
index.html.bak
Normal file
File diff suppressed because it is too large
Load Diff
2120
reversed.txt
Normal file
2120
reversed.txt
Normal file
File diff suppressed because it is too large
Load Diff
2
t0sig.py
2
t0sig.py
|
@ -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…
Reference in New Issue
Block a user