From 64b64615d67fc9bc6837b2a9be46ace955a758f6 Mon Sep 17 00:00:00 2001 From: Rizky Date: Sun, 4 Feb 2024 15:03:06 +0700 Subject: [PATCH] fix --- pkgs/core/api/_proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/core/api/_proxy.ts b/pkgs/core/api/_proxy.ts index 3852c141..bb4b0054 100644 --- a/pkgs/core/api/_proxy.ts +++ b/pkgs/core/api/_proxy.ts @@ -12,7 +12,7 @@ export const _ = { headers: any; body: any; }) { - if (!arg.url) return new Response(null, { status: 403 }); + if ((!!arg && !arg.url) || !arg) return new Response(null, { status: 403 }); const res = await fetch( arg.url,