From 6761915a3fc2484da06c7d66e2c2d23d3285e062 Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Thu, 9 Mar 2023 10:56:30 -0500 Subject: [PATCH] add .lower() to ping requsts --- titles/chuni/index.py | 2 +- titles/mai2/index.py | 2 +- titles/ongeki/index.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/titles/chuni/index.py b/titles/chuni/index.py index 66e8c65..ce6bda9 100644 --- a/titles/chuni/index.py +++ b/titles/chuni/index.py @@ -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() diff --git a/titles/mai2/index.py b/titles/mai2/index.py index 051cba0..80b3ac8 100644 --- a/titles/mai2/index.py +++ b/titles/mai2/index.py @@ -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() diff --git a/titles/ongeki/index.py b/titles/ongeki/index.py index c3d4b26..2bbdb46 100644 --- a/titles/ongeki/index.py +++ b/titles/ongeki/index.py @@ -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()