Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
bob2402 committed Apr 3, 2024
1 parent bd1755e commit 9d5d413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 9d5d413

Please sign in to comment.