From 9d5d4132da578f7df46f97d02113cf57d72d0707 Mon Sep 17 00:00:00 2001 From: Bob Date: Wed, 3 Apr 2024 11:44:57 +0800 Subject: [PATCH] + --- main.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tsx b/main.tsx index e665a44..dbac79e 100644 --- a/main.tsx +++ b/main.tsx @@ -147,7 +147,7 @@ const home_handler = (args: { information?: RelayInformation }) => { } const information_handler = (args: { information?: RelayInformation }) => { - const resp = new Response(JSON.stringify(args.information), { status: 200 }); + const resp = new Response(JSON.stringify(args.information || {}), { status: 200 }); resp.headers.set("content-type", "application/json; charset=utf-8"); resp.headers.set("Access-Control-Allow-Origin", "*"); resp.headers.set("Access-Control-Allow-Methods", "GET");