1
0
forked from Hay1tsme/artemis

add .lower() to ping requsts

This commit is contained in:
Hay1tsme 2023-03-09 10:56:30 -05:00
parent c8d4bc6109
commit 6761915a3f
3 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ class ChuniServlet():
return (True, f"http://{core_cfg.title.hostname}/{game_code}/$v/", "")
def render_POST(self, request: Request, version: int, url_path: str) -> bytes:
if url_path == "/ping":
if url_path.lower() == "/ping":
return zlib.compress(json.dumps({'returnCode': 1}, ensure_ascii=False).encode("utf-8"))
req_raw = request.content.getvalue()

View File

@ -69,7 +69,7 @@ class Mai2Servlet():
return (True, f"http://{core_cfg.title.hostname}/{game_code}/$v/", f"{core_cfg.title.hostname}/")
def render_POST(self, request: Request, version: int, url_path: str) -> bytes:
if url_path == "/ping":
if url_path.lower() == "/ping":
return zlib.compress(json.dumps({'returnCode': 1}, ensure_ascii=False).encode("utf-8"))
req_raw = request.content.getvalue()

View File

@ -72,7 +72,7 @@ class OngekiServlet():
return (True, f"http://{core_cfg.title.hostname}/{game_code}/$v/", f"{core_cfg.title.hostname}/")
def render_POST(self, request: Request, version: int, url_path: str) -> bytes:
if url_path == "/ping":
if url_path.lower() == "/ping":
return zlib.compress(json.dumps({'returnCode': 1}, ensure_ascii=False).encode("utf-8"))
req_raw = request.content.getvalue()