From 5d036ddeee7dcfff6368dd5f7f7bd5dd2d096dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Sat, 27 Jul 2024 00:17:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=8A=A0=E8=BD=BD=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/TGHttp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/TGHttp.ts b/src/utils/TGHttp.ts index ad5c84fd..f2b2a449 100644 --- a/src/utils/TGHttp.ts +++ b/src/utils/TGHttp.ts @@ -65,7 +65,7 @@ async function TGHttp( return await fetch(url, fetchOptions) .then((res) => { if (res.ok) { - const data = options.isBlob ? res.blob() : res.json(); + const data = options.isBlob ? res.arrayBuffer() : res.json(); if (fullResponse) { return { data, resp: res }; }