From be0e407ebedd2f552fa23caa58ddf9fd3b39513f Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Tue, 9 Jan 2024 18:49:43 -0500 Subject: [PATCH] wacca: fix hash --- titles/wacca/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titles/wacca/index.py b/titles/wacca/index.py index 3f58a9d..e1428fa 100644 --- a/titles/wacca/index.py +++ b/titles/wacca/index.py @@ -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', '')