fix: condition to check instance must be get
This commit is contained in:
parent
ac67cdef7d
commit
fbb078b30c
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ async def instance_is_misskey(instance: str) -> bool:
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
async with aiohttp.ClientSession() as client:
|
async with aiohttp.ClientSession() as client:
|
||||||
async with client.post(f"https://{instance}/api/v1/instance", headers={"Content-Type": "application/json"},
|
async with client.get(f"https://{instance}/api/v1/instance", headers={"Content-Type": "application/json"},
|
||||||
allow_redirects=False) as r:
|
allow_redirects=False) as r:
|
||||||
if r.status != 200:
|
if r.status != 200:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue