From 923c1bc49b5e5154ba5fd8107cd1b73ca0e8a575 Mon Sep 17 00:00:00 2001 From: lapp Date: Sun, 10 May 2026 13:08:55 -0700 Subject: [PATCH] minor fixes --- deploy/cloudflare-worker/worker.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deploy/cloudflare-worker/worker.js b/deploy/cloudflare-worker/worker.js index 7b30e9c..e510263 100644 --- a/deploy/cloudflare-worker/worker.js +++ b/deploy/cloudflare-worker/worker.js @@ -13,7 +13,7 @@ export default { return json({ e: "loop detected" }, 508); } - if (request.method == "GET") { + if (request.method === "GET") { return json({ e: "Relay is Active." }, 200); } @@ -64,8 +64,7 @@ export default { }; if (req.b) { - const binary = Uint8Array.from(atob(req.b), c => c.charCodeAt(0)); - fetchOptions.body = binary; + fetchOptions.body = Uint8Array.from(atob(req.b), c => c.charCodeAt(0)); } const resp = await fetch(targetUrl.toString(), fetchOptions);