From b4a3a3ab9ebdca2227694a80b56e04f857864967 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Fri, 20 Oct 2023 01:44:21 -0400 Subject: [PATCH] chuni: fix endpoint --- titles/chuni/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/titles/chuni/index.py b/titles/chuni/index.py index b736427..ea9f2dc 100644 --- a/titles/chuni/index.py +++ b/titles/chuni/index.py @@ -154,10 +154,10 @@ class ChuniServlet(BaseServlet): return (f"http://{self.core_cfg.title.hostname}/{game_ver}/", "") def render_POST(self, request: Request, game_code: int, matchers: Dict) -> bytes: - url_path = matchers['endpoint'] + endpoint = matchers['endpoint'] version = int(matchers['version']) - if url_path.lower() == "ping": + if endpoint.lower() == "ping": return zlib.compress(b'{"returnCode": "1"}') req_raw = request.content.getvalue()