This commit is contained in:
Rizky 2024-06-21 12:38:39 +07:00
parent 2be9c32c7e
commit 1309a9db3e
1 changed files with 0 additions and 7 deletions

View File

@ -36,13 +36,6 @@ export const _ = {
res_headers[k] = v; res_headers[k] = v;
}); });
res_body = await res.arrayBuffer(); res_body = await res.arrayBuffer();
if (res_headers["content-encoding"] === "gzip") {
res_body = await gzipAsync(new Uint8Array(res_body));
delete res_headers["content-encoding"];
} else if (res_headers["content-encoding"] === "zstd") {
res_body = await decompress(res_body);
delete res_headers["content-encoding"];
}
return new Response(res_body, { headers: res_headers }); return new Response(res_body, { headers: res_headers });
} catch (e: any) { } catch (e: any) {