From e081068c9867edbca29a4427fb130e8ec1ffc4de Mon Sep 17 00:00:00 2001 From: Rizky Date: Fri, 21 Jun 2024 13:58:39 +0700 Subject: [PATCH] fix --- pkgs/core/api/_proxy.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkgs/core/api/_proxy.ts b/pkgs/core/api/_proxy.ts index 7e776f58..c11c63b5 100644 --- a/pkgs/core/api/_proxy.ts +++ b/pkgs/core/api/_proxy.ts @@ -37,16 +37,10 @@ export const _ = { }); res_body = await res.arrayBuffer(); - console.log( - url, - res_headers["content-encoding"], - new TextDecoder().decode(res_body) - ); - if (res_headers["content-encoding"] === "gzip") { delete res_headers["content-encoding"]; } else if (res_headers["content-encoding"] === "br") { - res_body = brotli.decompress(res_body); + res_body = new TextDecoder().decode(res_body); delete res_headers["content-encoding"]; }