forked from Hay1tsme/artemis
chuni: fix endpoint
This commit is contained in:
parent
5278d1e6c1
commit
b4a3a3ab9e
@ -154,10 +154,10 @@ class ChuniServlet(BaseServlet):
|
|||||||
return (f"http://{self.core_cfg.title.hostname}/{game_ver}/", "")
|
return (f"http://{self.core_cfg.title.hostname}/{game_ver}/", "")
|
||||||
|
|
||||||
def render_POST(self, request: Request, game_code: int, matchers: Dict) -> bytes:
|
def render_POST(self, request: Request, game_code: int, matchers: Dict) -> bytes:
|
||||||
url_path = matchers['endpoint']
|
endpoint = matchers['endpoint']
|
||||||
version = int(matchers['version'])
|
version = int(matchers['version'])
|
||||||
|
|
||||||
if url_path.lower() == "ping":
|
if endpoint.lower() == "ping":
|
||||||
return zlib.compress(b'{"returnCode": "1"}')
|
return zlib.compress(b'{"returnCode": "1"}')
|
||||||
|
|
||||||
req_raw = request.content.getvalue()
|
req_raw = request.content.getvalue()
|
||||||
|
Loading…
Reference in New Issue
Block a user