1
0
forked from Hay1tsme/artemis

wacca: fix hash

This commit is contained in:
Hay1tsme 2024-01-09 18:49:43 -05:00
parent c680c2d4e9
commit be0e407ebe

View File

@ -97,7 +97,7 @@ class WaccaServlet(BaseServlet):
async def render_POST(self, request: Request) -> bytes:
def end(resp: Dict) -> bytes:
hash = md5(json.dumps(resp, ensure_ascii=False).encode()).digest()
return JSONResponse(resp, headers=["X-Wacca-Hash", hash.hex()])
return JSONResponse(resp, headers={"X-Wacca-Hash": hash.hex()})
api = request.path_params.get('api', '')
branch = request.path_params.get('branch', '')