add special-case ping handlers to mai2, ongeki and chuni

This commit is contained in:
Hay1tsme committed 2023-03-09 10:52:49 -05:00
1 parent 6dcd7b67ef
commit c8d4bc6109
5 files changed
+9 -6

No files matched your search

+3
View File
@@ -72,6 +72,9 @@ 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":
return zlib.compress(json.dumps({'returnCode': 1}, ensure_ascii=False).encode("utf-8"))
req_raw = request.content.getvalue()
url_split = url_path.split("/")
internal_ver = 0