forked from Hay1tsme/artemis
add special-case ping handlers to mai2, ongeki and chuni
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user